8154498: fix to 8154403 results in failure of UserModuleTest.java on all platforms
authorsherman
Mon, 18 Apr 2016 22:12:52 -0700
changeset 37536 dcd80bbbb686
parent 37535 4d7fb57ca5d3
child 37537 0af4cc7d6f54
8154498: fix to 8154403 results in failure of UserModuleTest.java on all platforms Reviewed-by: darcy, sundar
jdk/test/tools/jlink/plugins/InstalledModuleDescriptors/src/m1/p1/Main.java
--- a/jdk/test/tools/jlink/plugins/InstalledModuleDescriptors/src/m1/p1/Main.java	Mon Apr 18 20:19:39 2016 -0700
+++ b/jdk/test/tools/jlink/plugins/InstalledModuleDescriptors/src/m1/p1/Main.java	Mon Apr 18 22:12:52 2016 -0700
@@ -29,6 +29,7 @@
 import java.nio.file.FileSystems;
 import java.nio.file.Files;
 import java.nio.file.Path;
+import java.util.Collections;
 import java.util.Set;
 
 public class Main {
@@ -40,7 +41,8 @@
         validate(Main.class.getModule().getDescriptor());
 
         // read m1/module-info.class
-        FileSystem fs = FileSystems.newFileSystem(URI.create("jrt:/"), null);
+        FileSystem fs = FileSystems.newFileSystem(URI.create("jrt:/"),
+                                                  Collections.emptyMap());
         Path path = fs.getPath("/", "modules", "m1", "module-info.class");
         validate(ModuleDescriptor.read(Files.newInputStream(path)));
     }