nashorn/test/script/basic/compile-octane-normal.js
changeset 26373 cd907cf7bf7a
parent 26067 b32ccc3a76c9
--- a/nashorn/test/script/basic/compile-octane-normal.js	Thu Aug 28 16:38:23 2014 +0200
+++ b/nashorn/test/script/basic/compile-octane-normal.js	Mon Sep 01 17:34:37 2014 +0400
@@ -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);