diff test/java/util/ResourceBundle/modules/basic/basic.sh @ 13553:6a7e0309fa89

Update ResourceBundle tests specific target module to javac -XaddExports
author alanb
date Fri, 31 Jul 2015 08:10:32 +0100
parents 70d30ff90c0f
children 092748c0492c
line wrap: on
line diff
--- a/test/java/util/ResourceBundle/modules/basic/basic.sh	Fri Jul 31 11:37:53 2015 +0530
+++ b/test/java/util/ResourceBundle/modules/basic/basic.sh	Fri Jul 31 08:10:32 2015 +0100
@@ -41,9 +41,7 @@
 
 # This test is temporarily converted to use AbstractResourceBundleProvider class
 # to avoid calling Control.newBundle
-
-EXTRA_JAVAC_OPTS="-XaddExports:java.base/sun.util.locale.provider"
-EXTRA_JAVA_OPTS="-XaddExports:java.base/sun.util.locale.provider=mainbundles"
+EXTRA_OPTS="-XaddExports:java.base/sun.util.locale.provider=mainbundles"
 
 rm -rf mods
 
@@ -54,7 +52,7 @@
   mkdir -p mods/$B
   CLASSES="`find $TESTSRC/src/$B -name '*.java'`"
   if [ "x$CLASSES" != x ]; then
-    $JAVAC ${EXTRA_JAVAC_OPTS} -g -d mods -modulesourcepath $TESTSRC/src $CP $CLASSES
+    $JAVAC ${EXTRA_OPTS} -g -d mods -modulesourcepath $TESTSRC/src $CP $CLASSES
   fi
   PROPS="`(cd $TESTSRC/src/$B; find . -name '*.properties')`"
   if [ "x$PROPS" != x ]; then
@@ -69,7 +67,7 @@
 done
 
 mkdir -p mods/test
-$JAVAC ${EXTRA_JAVAC_OPTS} -g -cp mods/mainbundles -d mods -modulesourcepath $TESTSRC/src \
+$JAVAC ${EXTRA_OPTS} -g -cp mods/mainbundles -d mods -modulesourcepath $TESTSRC/src \
     `find $TESTSRC/src/test -name "*.java"`
 
 # Create a jar to be added to the class path. Expected only properties files are
@@ -81,10 +79,10 @@
                    -C $TESTSRC/src/extra jdk/test/resources/asia
 $JAR -tvf extra.jar
 
-$JAVA ${EXTRA_JAVA_OPTS} -mp mods -m test/jdk.test.Main de fr ja zh-tw en de &&
+$JAVA ${EXTRA_OPTS} -mp mods -m test/jdk.test.Main de fr ja zh-tw en de &&
     # properties files on the class path should be picked up.
-    $JAVA ${EXTRA_JAVA_OPTS} -cp extra.jar -mp mods -m test/jdk.test.Main de fr ja zh-tw en de vi &&
+    $JAVA ${EXTRA_OPTS} -cp extra.jar -mp mods -m test/jdk.test.Main de fr ja zh-tw en de vi &&
     # classes on the class path shouldn't.
-    ! $JAVA ${EXTRA_JAVA_OPTS} -cp extra.jar -mp mods -m test/jdk.test.Main es
+    ! $JAVA ${EXTRA_OPTS} -cp extra.jar -mp mods -m test/jdk.test.Main es
 
 exit $?