jdk/test/java/net/URLClassLoader/sealing/checksealed.sh
changeset 15254 3997a6f357cb
parent 14786 a9f61e0cbe61
child 22602 0d9a07b0d7e9
--- a/jdk/test/java/net/URLClassLoader/sealing/checksealed.sh	Fri Jan 11 12:27:57 2013 +0000
+++ b/jdk/test/java/net/URLClassLoader/sealing/checksealed.sh	Fri Jan 11 20:19:55 2013 +0000
@@ -51,11 +51,13 @@
 
 
 if [ x"$TESTJAVA" = x ]; then TESTJAVA=$1; fi
+if [ x"$COMPILEJAVA" = x ]; then COMPILEJAVA=$1; fi
 if [ x"$TESTSRC" = x ]; then TESTSRC=.; fi
 
 CLASSPATH=".${PS}${TESTSRC}${FS}a${PS}${TESTSRC}${FS}b.jar"
 
-${TESTJAVA}${FS}bin${FS}javac -classpath "${CLASSPATH}" -d . ${TESTSRC}${FS}CheckSealed.java
+${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -classpath "${CLASSPATH}" -d . \
+    ${TESTSRC}${FS}CheckSealed.java
 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -cp "${CLASSPATH}" CheckSealed 1
 if [ $? != 0 ]; then exit 1; fi
 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -cp "${CLASSPATH}" CheckSealed 2