Handle SecurityErrors on bad auxclasspath entries
This commit is contained in:
@ -105,7 +105,7 @@ public class ClasspathClassLoader extends URLClassLoader {
|
|||||||
try {
|
try {
|
||||||
// checking local
|
// checking local
|
||||||
c = findClass(name);
|
c = findClass(name);
|
||||||
} catch (final ClassNotFoundException e) {
|
} catch (final ClassNotFoundException | SecurityException e) {
|
||||||
// checking parent
|
// checking parent
|
||||||
// This call to loadClass may eventually call findClass again, in case the parent doesn't find anything.
|
// This call to loadClass may eventually call findClass again, in case the parent doesn't find anything.
|
||||||
c = super.loadClass(name, resolve);
|
c = super.loadClass(name, resolve);
|
||||||
|
Reference in New Issue
Block a user