changeset 27826:605a589e33ca

8066696: test/script/nosecurity/JDK-8055034.js -Xbootclasspath option is wrong Reviewed-by: attila, lagergren
author sundar
date Thu, 04 Dec 2014 21:52:58 +0530
parents cbb30ab946ee
children 5e4ae56d68ac
files nashorn/test/script/nosecurity/JDK-8055034.js
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)");