Fixed bug in demonstration. Spotted by Simon Kitching.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@170992 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -150,6 +150,9 @@ public class ClassLoaderRunner {
|
|||||||
|
|
||||||
if (setContextClassloader) {
|
if (setContextClassloader) {
|
||||||
Thread.currentThread().setContextClassLoader(child);
|
Thread.currentThread().setContextClassLoader(child);
|
||||||
|
} else {
|
||||||
|
ClassLoader system = ClassLoader.getSystemClassLoader();
|
||||||
|
Thread.currentThread().setContextClassLoader(system);
|
||||||
}
|
}
|
||||||
|
|
||||||
logDefiningLoaders(child, parent);
|
logDefiningLoaders(child, parent);
|
||||||
|
|||||||
Reference in New Issue
Block a user