Skip to content

Commit 4a81933

Browse files
committed
GH-559 source root can be file link
1 parent 8614fe4 commit 4a81933

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ private SourcePathHandle getSourceHandle(String resourcePath) {
7575
Path root = Paths.get(rootPath);
7676

7777
try {
78-
if (Files.isDirectory(root, LinkOption.NOFOLLOW_LINKS)) return getHandleInDirectory(root, resourcePath, subPaths, encoding);
79-
else if (Files.isRegularFile(root, LinkOption.NOFOLLOW_LINKS)) return getHandleInArchive(root, resourcePath, subPaths, encoding);
78+
if (Files.isDirectory(root)) return getHandleInDirectory(root, resourcePath, subPaths, encoding);
79+
else if (Files.isRegularFile(root)) return getHandleInArchive(root, resourcePath, subPaths, encoding);
8080
} catch (Throwable t) {
8181
LOGGER.log(Level.INFO, "Failed resolving source file " + resourcePath + " in " + root, t); // NOI18N
8282
}

0 commit comments

Comments
 (0)