--- a/langtools/test/tools/javac/processing/loader/testClose/TestClose.java Wed Aug 10 13:52:02 2016 -0700
+++ b/langtools/test/tools/javac/processing/loader/testClose/TestClose.java Wed Aug 10 15:47:46 2016 -0700
@@ -132,8 +132,8 @@
new MemFile("AnnoProc.java", annoProc),
new MemFile("Callback.java", callback));
List<String> options = Arrays.asList(
- "-XaddExports:jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED",
- "-XaddExports:jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
+ "--add-exports", "jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED",
+ "--add-exports", "jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
"-XDaccessInternalAPI");
JavacTask task = tool.getTask(null, fm, null, options, null, files);
check(task.call());