commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <skitch...@apache.org>
Subject [logging] demonstration harness bug
Date Sat, 07 May 2005 07:38:39 GMT
Hi Robert,

I've found a small but critical problem with the "demonstration" harness
in class ClassLoaderRunner. When the test is *not* using a
context-classloader, the previous test's setting is not being cleared.

Without this patch, the following tests report "Log4JLogger does not
implement Log": 
  5, 6, 9, 10, 13, 14, 20, 21, 22, 24, 25, 26, 28, 29, 30, 32

With this patch, the following tests report this error:  
  17, 20, 21, 24, 28, 32

ClassLoaderRunner.java:
         if (setContextClassloader) {
             Thread.currentThread().setContextClassLoader(child);
+        } else {
+            Thread.currentThread().setContextClassLoader(parent);
         }


Regards,

Simon


---------------------------------------------------------------------
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