From 17102040c757ca7d3fba2f0375e7306ee169b4f8 Mon Sep 17 00:00:00 2001 From: Decebal Suiu Date: Mon, 11 Mar 2019 19:38:45 +0200 Subject: [PATCH] Fix #297 --- pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java b/pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java index 2a84b4f..69e46e3 100644 --- a/pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java +++ b/pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java @@ -198,7 +198,7 @@ public abstract class AbstractExtensionFinder implements ExtensionFinder, Plugin ExtensionWrapper extensionWrapper = createExtensionWrapper(extensionClass); result.add(extensionWrapper); log.debug("Added extension '{}' with ordinal {}", className, extensionWrapper.getOrdinal()); - } catch (ClassNotFoundException e) { + } catch (ClassNotFoundException | NoSuchMethodError e) { log.error(e.getMessage(), e); } }