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(), Collections.emptyList(),
"-modulepath", modulePath.toString() + File.pathSeparator + out.getParent().toString(), "-modulepath", modulePath.toString() + File.pathSeparator + out.getParent().toString(),
"-classpath", classpathOut.toString(), "-classpath", classpathOut.toString(),
"-XaddReads:m2=ALL-UNNAMED,m2=automatic", "-XaddReads:m2=ALL-UNNAMED,automatic",
"-m", "m2/test.Test")) "-m", "m2/test.Test"))
.run() .run()
.writeAll() .writeAll()

View File

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