90 fm.setLocation(StandardLocation.ANNOTATION_PROCESSOR_PATH, |
90 fm.setLocation(StandardLocation.ANNOTATION_PROCESSOR_PATH, |
91 Collections.singleton(testClasses)); |
91 Collections.singleton(testClasses)); |
92 Iterable<? extends JavaFileObject> files = |
92 Iterable<? extends JavaFileObject> files = |
93 fm.getJavaFileObjects(new File(testSrc, TestClose2.class.getName() + ".java")); |
93 fm.getJavaFileObjects(new File(testSrc, TestClose2.class.getName() + ".java")); |
94 List<String> options = Arrays.asList( |
94 List<String> options = Arrays.asList( |
95 "-XaddExports:jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED", |
95 "--add-exports", "jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED", |
96 "-XaddExports:jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED", |
96 "--add-exports", "jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED", |
97 "-XaddExports:jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", |
97 "--add-exports", "jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", |
98 "-processor", TestClose2.class.getName()); |
98 "-processor", TestClose2.class.getName()); |
99 |
99 |
100 JavacTask task = tool.getTask(null, fm, null, options, null, files); |
100 JavacTask task = tool.getTask(null, fm, null, options, null, files); |
101 task.setTaskListener(this); |
101 task.setTaskListener(this); |
102 |
102 |