[logback-dev] svn commit: r2098 - logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Tue Dec 23 21:06:37 CET 2008
Author: ceki
Date: Tue Dec 23 21:06:37 2008
New Revision: 2098
Modified:
logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java
Log:
It is possible for ContextInitializer (part of logback-classic) to
be loaded by a different class loader than the class loaded that loaded
c.q.l.core.Loader (part of logback-core).
Modified: logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java
==============================================================================
--- logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java (original)
+++ logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java Tue Dec 23 21:06:37 2008
@@ -80,7 +80,7 @@
return url;
}
- url = Loader.getResourceBySelfClassLoader(TEST_AUTOCONFIG_FILE);
+ url = Loader.getResource(TEST_AUTOCONFIG_FILE, this.getClass().getClassLoader());
if (updateStatus) {
statusOnResourceSearch(TEST_AUTOCONFIG_FILE, url);
}
@@ -88,7 +88,7 @@
return url;
}
- url = Loader.getResourceBySelfClassLoader(AUTOCONFIG_FILE);
+ url = Loader.getResource(AUTOCONFIG_FILE, this.getClass().getClassLoader());
if (updateStatus) {
statusOnResourceSearch(AUTOCONFIG_FILE, url);
}
More information about the logback-dev
mailing list