8153370: Drop use of old style -XaddExports from tests

Reviewed-by: mchung
This commit is contained in:
Alan Bateman 2016-04-05 21:17:25 +01:00
parent 02b6426e3a
commit 337d1abca4
2 changed files with 5 additions and 5 deletions

View File

@ -391,7 +391,7 @@ public class AddLimitMods extends ModuleTestBase {
Collections.emptyList(),
"-modulepath", modulePath.toString() + File.pathSeparator + out.getParent().toString(),
"-classpath", classpathOut.toString(),
"-XaddReads:m2=ALL-UNNAMED,m2=automatic",
"-XaddReads:m2=ALL-UNNAMED,automatic",
"-m", "m2/test.Test"))
.run()
.writeAll()

View File

@ -99,8 +99,8 @@ public class PlatformProviderTest implements PlatformProvider {
.outdir(".")
.options("-J-classpath",
"-J" + System.getProperty("test.classes"),
"-J-XaddExports:jdk.compiler/com.sun.tools.javac.platform=ALL-UNNAMED," +
"jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
"-J-XaddExports:jdk.compiler/com.sun.tools.javac.platform=ALL-UNNAMED",
"-J-XaddExports:jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
"-XDrawDiagnostics",
"-release",
platformSpec,
@ -135,8 +135,8 @@ public class PlatformProviderTest implements PlatformProvider {
.outdir(".")
.options("-J-classpath",
"-J" + System.getProperty("test.classes"),
"-J-XaddExports:jdk.compiler/com.sun.tools.javac.platform=ALL-UNNAMED," +
"jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
"-J-XaddExports:jdk.compiler/com.sun.tools.javac.platform=ALL-UNNAMED",
"-J-XaddExports:jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
"-release",
"fail",
System.getProperty("test.src") + "/PlatformProviderTestSource.java")