Skip to content

Commit

Permalink
JarClassLoader needs to catch NoSuchFileException in addition to File…
Browse files Browse the repository at this point in the history
…NotFoundException
  • Loading branch information
matthiasblaesing committed Nov 1, 2019
1 parent df75397 commit d0b2506
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/o.n.bootstrap/src/org/netbeans/JarClassLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import java.net.URL;
import java.net.URLConnection;
import java.net.URLStreamHandler;
import java.nio.file.NoSuchFileException;
import java.security.CodeSource;
import java.security.PermissionCollection;
import java.security.Policy;
Expand Down Expand Up @@ -519,7 +520,7 @@ public JarFile call() throws IOException {
JarFile ret;
try {
ret = new JarFile(file, false);
} catch (FileNotFoundException ex) {
} catch (FileNotFoundException | NoSuchFileException ex) {
throw (ZipException)new ZipException(ex.getMessage()).initCause(ex);
}
long took = System.currentTimeMillis() - now;
Expand Down

0 comments on commit d0b2506

Please sign in to comment.