8164326: jrtfsviewer.js and jrtls.js does not work
Reviewed-by: sherman, sundar
This commit is contained in:
parent
c846a862ee
commit
a5859015a8
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user