From: asafbennatan Date: Thu, 9 Jul 2020 19:02:49 +0000 (+0300) Subject: parent first class loading is protected by ClassCastException instead of ClassNotFoun... X-Git-Tag: release-3.4.0~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4b6ad87cc3a686a1a10309b37148e3c4b8ea7277;p=pf4j.git parent first class loading is protected by ClassCastException instead of ClassNotFoundException (#384) --- diff --git a/pf4j/src/main/java/org/pf4j/PluginClassLoader.java b/pf4j/src/main/java/org/pf4j/PluginClassLoader.java index 8dc8415..4cf59ae 100644 --- a/pf4j/src/main/java/org/pf4j/PluginClassLoader.java +++ b/pf4j/src/main/java/org/pf4j/PluginClassLoader.java @@ -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 }