--- old/test/tools/javac/api/TestTrees.java 2016-08-05 14:31:36.000000000 -0700 +++ new/test/tools/javac/api/TestTrees.java 2016-08-05 14:31:36.000000000 -0700 @@ -79,8 +79,7 @@ fm.getJavaFileObjectsFromFiles(Arrays.asList(new File(testSrcDir, self + ".java"))); Iterable opts = Arrays.asList( - "-XaddExports:" - + "jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", + "--add-exports", "jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", "-d", ".", "-XDcompilePolicy=simple"); @@ -91,8 +90,7 @@ throw new AssertionError("compilation failed"); opts = Arrays.asList( - "-XaddExports:" - + "jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", + "--add-exports", "jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", "-XDaccessInternalAPI", "-d", ".", "-processorpath", testClassDir,