Handle SecurityErrors on bad auxclasspath entries

This commit is contained in:
Juan Martín Sotuyo Dodero
2017-10-31 01:53:03 -03:00
parent 64628370c8
commit c466179c2a

View File

@ -105,7 +105,7 @@ public class ClasspathClassLoader extends URLClassLoader {
try {
// checking local
c = findClass(name);
} catch (final ClassNotFoundException e) {
} catch (final ClassNotFoundException | SecurityException e) {
// checking parent
// This call to loadClass may eventually call findClass again, in case the parent doesn't find anything.
c = super.loadClass(name, resolve);