commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r170992 - /jakarta/commons/proper/logging/trunk/demonstration/src/java/org/apache/commons/logging/proofofconcept/runner/ClassLoaderRunner.java
Date Thu, 19 May 2005 20:42:13 GMT
Author: rdonkin
Date: Thu May 19 13:42:12 2005
New Revision: 170992

URL: http://svn.apache.org/viewcvs?rev=170992&view=rev
Log:
Fixed bug in demonstration. Spotted by Simon Kitching.

Modified:
    jakarta/commons/proper/logging/trunk/demonstration/src/java/org/apache/commons/logging/proofofconcept/runner/ClassLoaderRunner.java

Modified: jakarta/commons/proper/logging/trunk/demonstration/src/java/org/apache/commons/logging/proofofconcept/runner/ClassLoaderRunner.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/demonstration/src/java/org/apache/commons/logging/proofofconcept/runner/ClassLoaderRunner.java?rev=170992&r1=170991&r2=170992&view=diff
==============================================================================
--- jakarta/commons/proper/logging/trunk/demonstration/src/java/org/apache/commons/logging/proofofconcept/runner/ClassLoaderRunner.java
(original)
+++ jakarta/commons/proper/logging/trunk/demonstration/src/java/org/apache/commons/logging/proofofconcept/runner/ClassLoaderRunner.java
Thu May 19 13:42:12 2005
@@ -150,6 +150,9 @@
         
         if (setContextClassloader) {
             Thread.currentThread().setContextClassLoader(child);
+        } else  {
+            ClassLoader system = ClassLoader.getSystemClassLoader();
+            Thread.currentThread().setContextClassLoader(system);
         }
         
         logDefiningLoaders(child, parent);



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message