8164326: jrtfsviewer.js and jrtls.js does not work
authorysuenaga
Fri, 19 Aug 2016 16:29:41 +0900
changeset 40417 3d9dea523f79
parent 40416 5d91b2fd668c
child 40418 fb874cf24974
8164326: jrtfsviewer.js and jrtls.js does not work Reviewed-by: sherman, sundar
jdk/src/java.base/share/classes/jdk/internal/jrtfs/jrtfsviewer.js
jdk/src/java.base/share/classes/jdk/internal/jrtfs/jrtls.js
--- a/jdk/src/java.base/share/classes/jdk/internal/jrtfs/jrtfsviewer.js	Fri Aug 19 06:27:54 2016 +0000
+++ b/jdk/src/java.base/share/classes/jdk/internal/jrtfs/jrtfsviewer.js	Fri Aug 19 16:29:41 2016 +0900
@@ -53,6 +53,7 @@
 var Files = Java.type("java.nio.file.Files");
 var System = Java.type("java.lang.System");
 var URI = Java.type("java.net.URI");
+var Collections = Java.type("java.util.Collections");
 
 // JavaFX classes used
 var StackPane = Java.type("javafx.scene.layout.StackPane");
@@ -100,7 +101,7 @@
             print("did you miss specifying jrt-fs.jar with -cp option?");
             usage();
         }
-        return FileSystems.newFileSystem(uri, null, cls.classLoader);
+        return FileSystems.newFileSystem(uri, Collections.emptyMap(), cls.classLoader);
     }
 }
 
--- a/jdk/src/java.base/share/classes/jdk/internal/jrtfs/jrtls.js	Fri Aug 19 06:27:54 2016 +0000
+++ b/jdk/src/java.base/share/classes/jdk/internal/jrtfs/jrtls.js	Fri Aug 19 16:29:41 2016 +0900
@@ -34,7 +34,6 @@
  * 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.
  */
- */
 
 // classes used
 var Files = Java.type("java.nio.file.Files");