8066696: test/script/nosecurity/JDK-8055034.js -Xbootclasspath option is wrong
authorsundar
Thu, 04 Dec 2014 21:52:58 +0530
changeset 27826 605a589e33ca
parent 27825 cbb30ab946ee
child 27827 5e4ae56d68ac
8066696: test/script/nosecurity/JDK-8055034.js -Xbootclasspath option is wrong Reviewed-by: attila, lagergren
nashorn/test/script/nosecurity/JDK-8055034.js
--- a/nashorn/test/script/nosecurity/JDK-8055034.js	Thu Dec 04 20:40:48 2014 +0530
+++ b/nashorn/test/script/nosecurity/JDK-8055034.js	Thu Dec 04 21:52:58 2014 +0530
@@ -43,7 +43,6 @@
 if (! nashornJar.isAbsolute()) {
     nashornJar = new File(".", nashornJar);
 }
-var nashornJarDir = nashornJar.parentFile.absolutePath;
 
 // we want to use nashorn.jar passed and not the one that comes with JRE
 var jjsCmd = javahome + "/../bin/jjs";
@@ -52,7 +51,7 @@
     jjsCmd = javahome + "/bin/jjs";
     jjsCmd = jjsCmd.toString().replaceAll(/\//g, File.separater);
 }
-jjsCmd += " -J-Xbootclasspath/a:" + nashornJarDir;
+jjsCmd += " -J-Xbootclasspath/p:" + nashornJar;
 
 $ENV.PWD=System.getProperty("user.dir") // to avoid RE on Cygwin
 $EXEC(jjsCmd, "var x = Object.create(null);\nx;\nprint('PASSED');\nexit(0)");