From 4b6ad87cc3a686a1a10309b37148e3c4b8ea7277 Mon Sep 17 00:00:00 2001 From: asafbennatan Date: Thu, 9 Jul 2020 22:02:49 +0300 Subject: [PATCH] parent first class loading is protected by ClassCastException instead of ClassNotFoundException (#384) --- pf4j/src/main/java/org/pf4j/PluginClassLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.39.5