langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/JRTIndex.java
changeset 36526 3b41f1c69604
parent 34752 9c262a013456
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/JRTIndex.java	Tue Mar 15 13:48:30 2016 -0700
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/JRTIndex.java	Thu Mar 17 19:04:28 2016 +0000
@@ -201,6 +201,8 @@
             if (Files.exists(dir)) {
                 try (DirectoryStream<Path> modules = Files.newDirectoryStream(dir)) {
                     for (Path module: modules) {
+                        if (Files.isSymbolicLink(module))
+                            module = Files.readSymbolicLink(module);
                         Path p = rd.resolveAgainst(module);
                         if (!Files.exists(p))
                             continue;