changeset 1127:1c7fd53d4205

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 687430164864
children 498d1d6c4219
files test/script/nosecurity/JDK-8055034.js
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/script/nosecurity/JDK-8055034.js	Thu Dec 04 20:40:48 2014 +0530
+++ b/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)");