8054343: Nashorn: Some tests fails on windows with AccessControlException

Reviewed-by: lagergren, sundar
This commit is contained in:
Sergey Lugovoy 2014-09-01 17:34:37 +04:00 committed by Yuri Nesterenko
parent 5e59a2ef0d
commit d23eaa4432
3 changed files with 5 additions and 5 deletions

View File

@ -38,5 +38,5 @@
*/
var fn = __DIR__ + 'compile-octane.js';
var url = "file://" + fn;
loadWithNewGlobal(new java.net.URL(url));
var url = new java.io.File(fn).toURL();
loadWithNewGlobal(url);

View File

@ -40,5 +40,5 @@
*/
var fn = __DIR__ + 'compile-octane.js';
var url = "file://" + fn;
loadWithNewGlobal(new java.net.URL(url));
var url = new java.io.File(fn).toURL();
loadWithNewGlobal(url);

View File

@ -132,7 +132,7 @@ for (var j in tests) {
str2 += " processing file: " + file + "...";
print_if_verbose(str2);
}
newGlobal.load("file://" + path + file);
newGlobal.load(new java.io.File(path + file).toURL());
}
}
print("Done.");