langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/Locations.java
changeset 38536 42569f7fe4e6
parent 38519 d70d50ec27bb
child 40302 8c0d8d2c3519
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/Locations.java	Sat May 21 22:32:08 2016 -0700
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/Locations.java	Mon May 23 10:08:48 2016 +0530
@@ -1062,7 +1062,7 @@
                     return null;
                 }
 
-                if (p.getFileName().toString().endsWith(".jar")) {
+                if (p.getFileName().toString().endsWith(".jar") && fsInfo.exists(p)) {
                     try (FileSystem fs = FileSystems.newFileSystem(p, null)) {
                         Path moduleInfoClass = fs.getPath("module-info.class");
                         if (Files.exists(moduleInfoClass)) {