--- old/test/tools/javac/T6358166.java 2016-08-05 14:31:28.000000000 -0700 +++ new/test/tools/javac/T6358166.java 2016-08-05 14:31:28.000000000 -0700 @@ -56,10 +56,10 @@ JavaFileObject f = fm.getJavaFileObject(testSrc + File.separatorChar + self + ".java"); List addExports = Arrays.asList( - "-XaddExports:jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED", - "-XaddExports:jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED", - "-XaddExports:jdk.compiler/com.sun.tools.javac.main=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.file=ALL-UNNAMED", + "--add-exports", "jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED", + "--add-exports", "jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED"); test(fm, f, addExports, "-verbose", "-d", ".");