aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasafbennatan <asafbennatan@gmail.com>2020-07-09 22:02:49 +0300
committerGitHub <noreply@github.com>2020-07-09 22:02:49 +0300
commit4b6ad87cc3a686a1a10309b37148e3c4b8ea7277 (patch)
treeb1939e2fa998694e1b033d37eb9167c92c690fcd
parente98c0a4f98c72c90b429e803bc1967e0056ba541 (diff)
downloadpf4j-4b6ad87cc3a686a1a10309b37148e3c4b8ea7277.tar.gz
pf4j-4b6ad87cc3a686a1a10309b37148e3c4b8ea7277.zip
parent first class loading is protected by ClassCastException instead of ClassNotFoundException (#384)
-rw-r--r--pf4j/src/main/java/org/pf4j/PluginClassLoader.java2
1 files changed, 1 insertions, 1 deletions
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
}