Browse Source

parent first class loading is protected by ClassCastException instead of ClassNotFoundException (#384)

pull/387/head
asafbennatan 4 years ago committed by GitHub
parent
commit
4b6ad87cc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pf4j/src/main/java/org/pf4j/PluginClassLoader.java

2
pf4j/src/main/java/org/pf4j/PluginClassLoader.java

@ -133,7 +133,7 @@ public class PluginClassLoader extends URLClassLoader {
// try to load from parent // try to load from parent
try { try {
return super.loadClass(className); return super.loadClass(className);
} catch (ClassCastException e) { } catch (ClassNotFoundException e) {
// try next step // try next step
} }

Loading…
Cancel
Save