changeset 14208:def1edac0ea5

8154498: fix to 8154403 results in failure of UserModuleTest.java on all platforms Reviewed-by: darcy, sundar
author sherman
date Mon, 18 Apr 2016 22:12:52 -0700
parents d094de1b933d
children 9bde86ff09ba
files test/tools/jlink/plugins/InstalledModuleDescriptors/src/m1/p1/Main.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/jlink/plugins/InstalledModuleDescriptors/src/m1/p1/Main.java	Mon Apr 18 20:19:39 2016 -0700
+++ b/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)));
     }