< prev index next >
test/tools/javac/api/TestJavacTaskScanner.java
Print this page
@@ -72,14 +72,14 @@
TestJavacTaskScanner(File file) {
final Iterable<? extends JavaFileObject> compilationUnits =
fm.getJavaFileObjects(new File[] {file});
StandardJavaFileManager fm = getLocalFileManager(tool, null, null);
java.util.List<String> options = Arrays.asList(
- "-XaddExports:jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED",
- "-XaddExports:jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
- "-XaddExports:jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED",
- "-XaddExports:jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED");
+ "--add-exports", "jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED",
+ "--add-exports", "jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
+ "--add-exports", "jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED",
+ "--add-exports", "jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED");
task = (JavacTaskImpl)tool.getTask(null, fm, null, options, null, compilationUnits);
task.getContext().put(ScannerFactory.scannerFactoryKey,
new MyScanner.Factory(task.getContext(), this));
elements = task.getElements();
types = task.getTypes();
< prev index next >