8164326: jrtfsviewer.js and jrtls.js does not work

Reviewed-by: sherman, sundar
This commit is contained in:
Yasumasa Suenaga 2016-08-19 16:29:41 +09:00
parent c846a862ee
commit a5859015a8
2 changed files with 2 additions and 2 deletions

View File

@ -53,6 +53,7 @@ var FileSystems = Java.type("java.nio.file.FileSystems");
var Files = Java.type("java.nio.file.Files"); var Files = Java.type("java.nio.file.Files");
var System = Java.type("java.lang.System"); var System = Java.type("java.lang.System");
var URI = Java.type("java.net.URI"); var URI = Java.type("java.net.URI");
var Collections = Java.type("java.util.Collections");
// JavaFX classes used // JavaFX classes used
var StackPane = Java.type("javafx.scene.layout.StackPane"); var StackPane = Java.type("javafx.scene.layout.StackPane");
@ -100,7 +101,7 @@ function getJrtFileSystem() {
print("did you miss specifying jrt-fs.jar with -cp option?"); print("did you miss specifying jrt-fs.jar with -cp option?");
usage(); usage();
} }
return FileSystems.newFileSystem(uri, null, cls.classLoader); return FileSystems.newFileSystem(uri, Collections.emptyMap(), cls.classLoader);
} }
} }

View File

@ -34,7 +34,6 @@
* but also compiled and delivered as part of the jrtfs.jar to support access * but also compiled and delivered as part of the jrtfs.jar to support access
* to the jimage file provided by the shipped JDK by tools running on JDK 8. * to the jimage file provided by the shipped JDK by tools running on JDK 8.
*/ */
*/
// classes used // classes used
var Files = Java.type("java.nio.file.Files"); var Files = Java.type("java.nio.file.Files");