You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rd...@apache.org on 2005/11/17 22:39:30 UTC

svn commit: r345332 - /jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/Log4J12Logger.java

Author: rdonkin
Date: Thu Nov 17 13:39:26 2005
New Revision: 345332

URL: http://svn.apache.org/viewcvs?rev=345332&view=rev
Log:
Workaround for buggy reflection. Thanks to Dennis Lundberg for discovering this problem.

Modified:
    jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/Log4J12Logger.java

Modified: jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/Log4J12Logger.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/Log4J12Logger.java?rev=345332&r1=345331&r2=345332&view=diff
==============================================================================
--- jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/Log4J12Logger.java (original)
+++ jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/Log4J12Logger.java Thu Nov 17 13:39:26 2005
@@ -86,7 +86,7 @@
         // calls to Log.trace(...) onto the DEBUG level.
         
         try {
-            traceLevel = (Priority) Priority.class.getDeclaredField("TRACE").get(null);
+            traceLevel = (Priority) Level.class.getDeclaredField("TRACE").get(null);
         } catch(Exception ex) {
             // ok, trace not available
             traceLevel = Priority.DEBUG;



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