]> source.dussan.org Git - pf4j.git/commitdiff
parent first class loading is protected by ClassCastException instead of ClassNotFoun...
authorasafbennatan <asafbennatan@gmail.com>
Thu, 9 Jul 2020 19:02:49 +0000 (22:02 +0300)
committerGitHub <noreply@github.com>
Thu, 9 Jul 2020 19:02:49 +0000 (22:02 +0300)
pf4j/src/main/java/org/pf4j/PluginClassLoader.java

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