8153370: Drop use of old style -XaddExports from tests
authoralanb
Tue, 05 Apr 2016 21:17:25 +0100
changeset 36994 b6fede3120ae
parent 36993 e00f4be3a47d
child 37000 3ce4dee5a400
8153370: Drop use of old style -XaddExports from tests Reviewed-by: mchung
langtools/test/tools/javac/modules/AddLimitMods.java
langtools/test/tools/javac/platform/PlatformProviderTest.java
--- a/langtools/test/tools/javac/modules/AddLimitMods.java	Tue Apr 05 00:46:51 2016 -0700
+++ b/langtools/test/tools/javac/modules/AddLimitMods.java	Tue Apr 05 21:17:25 2016 +0100
@@ -391,7 +391,7 @@
                                                  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()
--- a/langtools/test/tools/javac/platform/PlatformProviderTest.java	Tue Apr 05 00:46:51 2016 -0700
+++ b/langtools/test/tools/javac/platform/PlatformProviderTest.java	Tue Apr 05 21:17:25 2016 +0100
@@ -99,8 +99,8 @@
                   .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 @@
                   .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")