langtools/test/tools/javac/T8010737/ParameterNamesAreNotCopiedToAnonymousInitTest.java
changeset 40308 274367a99f98
parent 37848 3c8ff4204d2d
child 43258 45757c4367f2
equal deleted inserted replaced
40306:1a0fcaf3f2ed 40308:274367a99f98
   141             Iterable<? extends JavaFileObject> fos =
   141             Iterable<? extends JavaFileObject> fos =
   142                     fm.getJavaFileObjectsFromFiles(
   142                     fm.getJavaFileObjectsFromFiles(
   143                     Arrays.asList(new File(System.getProperty("test.src"),
   143                     Arrays.asList(new File(System.getProperty("test.src"),
   144                     this.getClass().getName() + ".java")));
   144                     this.getClass().getName() + ".java")));
   145             java.util.List<String> options = Arrays.asList(
   145             java.util.List<String> options = Arrays.asList(
   146                 "-XaddExports:jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED",
   146                 "--add-exports", "jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED",
   147                 "-XaddExports:jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED",
   147                 "--add-exports", "jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED",
   148                 "-XaddExports:jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
   148                 "--add-exports", "jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
   149                 "-XaddExports:jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
   149                 "--add-exports", "jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
   150                 "-XaddExports:jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
   150                 "--add-exports", "jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
   151                 "-d", System.getProperty("user.dir")
   151                 "-d", System.getProperty("user.dir")
   152             );
   152             );
   153             JavacTask task = (JavacTask) c.getTask(null, fm, null, options, null, fos);
   153             JavacTask task = (JavacTask) c.getTask(null, fm, null, options, null, fos);
   154 
   154 
   155             BasicJavacTask impl = (BasicJavacTask)task;
   155             BasicJavacTask impl = (BasicJavacTask)task;