See gh-12236
This commit is contained in:
igor-suhorukov
2018-02-27 01:08:28 +03:00
committed by Stephane Nicoll
parent a93052f380
commit 56cbc65e7b
13 changed files with 61 additions and 77 deletions

View File

@@ -266,11 +266,10 @@ final class JarURLConnection extends java.net.JarURLConnection {
index = separator + SEPARATOR.length();
}
JarEntryName jarEntryName = JarEntryName.get(spec, index);
if (Boolean.TRUE.equals(useFastExceptions.get())) {
if (!jarEntryName.isEmpty()
if (Boolean.TRUE.equals(useFastExceptions.get())
&& !jarEntryName.isEmpty()
&& !jarFile.containsEntry(jarEntryName.toString())) {
return NOT_FOUND_CONNECTION;
}
return NOT_FOUND_CONNECTION;
}
return new JarURLConnection(url, jarFile, jarEntryName);
}