8154498: fix to 8154403 results in failure of UserModuleTest.java on all platforms
Reviewed-by: darcy, sundar
This commit is contained in:
parent
2b6eedeff9
commit
6f26ab8d12
@ -29,6 +29,7 @@ import java.nio.file.FileSystem;
|
||||
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 @@ public class Main {
|
||||
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)));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user