--- old/test/tools/javac/util/T6597678.java 2016-08-05 14:32:19.000000000 -0700 +++ new/test/tools/javac/util/T6597678.java 2016-08-05 14:32:18.000000000 -0700 @@ -59,8 +59,8 @@ PrintWriter pw = new PrintWriter(sw); compile(sw, pw, - "-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", "-proc:only", "-processor", myName,