8066696: test/script/nosecurity/JDK-8055034.js -Xbootclasspath option is wrong
Reviewed-by: attila, lagergren
--- 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)");