8153370: Drop use of old style -XaddExports from tests
Reviewed-by: mchung
This commit is contained in:
parent
02b6426e3a
commit
337d1abca4
@ -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()
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user