--- 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)) {