summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordecebal <decebal.suiu@asf.ro>2016-07-01 14:02:44 +0300
committerdecebal <decebal.suiu@asf.ro>2016-07-01 14:02:44 +0300
commit33a49849b7834f413c4f1cff0a4c6c03ff7746c7 (patch)
treec2a1d7cfaef0bd7e6c6844aff88514b70ae6d5ff
parentf79c200c213296aced61e8ab128bc3face7450df (diff)
downloadpf4j-33a49849b7834f413c4f1cff0a4c6c03ff7746c7.tar.gz
pf4j-33a49849b7834f413c4f1cff0a4c6c03ff7746c7.zip
Change class loaders order on trace debug
-rw-r--r--pf4j/src/main/java/ro/fortsoft/pf4j/AbstractExtensionFinder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/AbstractExtensionFinder.java b/pf4j/src/main/java/ro/fortsoft/pf4j/AbstractExtensionFinder.java
index 62dee84..8c5553e 100644
--- a/pf4j/src/main/java/ro/fortsoft/pf4j/AbstractExtensionFinder.java
+++ b/pf4j/src/main/java/ro/fortsoft/pf4j/AbstractExtensionFinder.java
@@ -87,10 +87,10 @@ public abstract class AbstractExtensionFinder implements ExtensionFinder, Plugin
log.debug("Added extension '{}' with ordinal {}", className, ordinal);
} else if (log.isTraceEnabled()) { // an alternative may be the use of a system property
log.trace("'{}' is not an extension for extension point '{}'", className, type.getName());
- ClassLoader typeClassLoader = type.getClassLoader();
ClassLoader extensionClassLoader = extensionClass.getClassLoader();
- if (!typeClassLoader.equals(extensionClassLoader)) {
- log.trace("Different class loaders: '{}' and '{}'", typeClassLoader, extensionClassLoader);
+ ClassLoader typeClassLoader = type.getClassLoader();
+ if (!extensionClassLoader.equals(typeClassLoader)) {
+ log.trace("Different class loaders: '{}' and '{}'", extensionClassLoader, typeClassLoader);
}
}
} catch (ClassNotFoundException e) {