54 |
54 |
55 JavacFileManager fm = new JavacFileManager(new Context(), false, null); |
55 JavacFileManager fm = new JavacFileManager(new Context(), false, null); |
56 JavaFileObject f = fm.getJavaFileObject(testSrc + File.separatorChar + self + ".java"); |
56 JavaFileObject f = fm.getJavaFileObject(testSrc + File.separatorChar + self + ".java"); |
57 |
57 |
58 List<String> addExports = Arrays.asList( |
58 List<String> addExports = Arrays.asList( |
59 "-XaddExports:jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED", |
59 "--add-exports", "jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED", |
60 "-XaddExports:jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED", |
60 "--add-exports", "jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED", |
61 "-XaddExports:jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED", |
61 "--add-exports", "jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED", |
62 "-XaddExports:jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED"); |
62 "--add-exports", "jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED"); |
63 |
63 |
64 test(fm, f, addExports, "-verbose", "-d", "."); |
64 test(fm, f, addExports, "-verbose", "-d", "."); |
65 |
65 |
66 test(fm, f, addExports, "-verbose", "-d", ".", "-XprintRounds", "-processorpath", ".", "-processor", self); |
66 test(fm, f, addExports, "-verbose", "-d", ".", "-XprintRounds", "-processorpath", ".", "-processor", self); |
67 } |
67 } |