changeset 3322:d5754aaff8ec

8153370: Drop use of old style -XaddExports from tests Reviewed-by: mchung
author alanb
date Tue, 05 Apr 2016 21:17:25 +0100
parents 68696e640592
children 306fef8428ac
files test/tools/javac/modules/AddLimitMods.java test/tools/javac/platform/PlatformProviderTest.java
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javac/modules/AddLimitMods.java	Tue Apr 05 00:46:51 2016 -0700
+++ b/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/test/tools/javac/platform/PlatformProviderTest.java	Tue Apr 05 00:46:51 2016 -0700
+++ b/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")