Skip to content

Commit f8f1e48

Browse files
committed
ambiguous reference to FileSystems.newFileSystem() fixed (JDK 13)
1 parent 090e5b8 commit f8f1e48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

visualvm/gotosource/src/org/graalvm/visualvm/gotosource/SourcesRoot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private static SourcePathHandle getHandleInDirectory(Path directory, String sour
104104
}
105105

106106
private static SourcePathHandle getHandleInArchive(Path archive, String sourcePath, String[] subPaths, Charset encoding) throws Throwable {
107-
FileSystem archiveFileSystem = FileSystems.newFileSystem(archive, null);
107+
FileSystem archiveFileSystem = FileSystems.newFileSystem(archive, (ClassLoader)null);
108108
if (subPaths == null) {
109109
Path sourceFile = archiveFileSystem.getPath(sourcePath);
110110
return isFile(sourceFile) ? new SourcePathHandle(sourceFile, true, encoding) : null;

visualvm/gotosource/src/org/graalvm/visualvm/gotosource/options/SourcesOptionsPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ private static List<String> getFolderSubDirs(File root) {
787787
}
788788

789789
private static List<String> getArchiveSubDirs(File root) {
790-
try (FileSystem archiveFileSystem = FileSystems.newFileSystem(root.toPath(), null)) {
790+
try (FileSystem archiveFileSystem = FileSystems.newFileSystem(root.toPath(), (ClassLoader)null)) {
791791
Path archive = archiveFileSystem.getRootDirectories().iterator().next();
792792
List<Path> subfolders = Files.walk(archive, 1).filter(Files::isDirectory).collect(Collectors.toList());
793793

0 commit comments

Comments
 (0)