commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject cvs commit: jakarta-commons/logging/src/java/org/apache/commons/logging/impl LogFactoryImpl.java
Date Sun, 17 Oct 2004 09:02:48 GMT
rdonkin     2004/10/17 02:02:48

  Modified:    logging/src/java/org/apache/commons/logging/impl
                        LogFactoryImpl.java
  Log:
  Improved test for log4j availability. Patch from issue #31597
  
  Revision  Changes    Path
  1.34      +3 -3      jakarta-commons/logging/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java
  
  Index: LogFactoryImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/logging/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- LogFactoryImpl.java	6 Mar 2004 21:52:59 -0000	1.33
  +++ LogFactoryImpl.java	17 Oct 2004 09:02:48 -0000	1.34
  @@ -502,8 +502,8 @@
       protected boolean isLog4JAvailable() {
   
           try {
  -            loadClass("org.apache.log4j.Logger");
  -            loadClass("org.apache.commons.logging.impl.Log4JLogger");
  +            loadClass("org.apache.commons.logging.impl.Log4JLogger").getClassLoader()
  +                .loadClass("org.apache.log4j.Logger" );
               return (true);
           } catch (Throwable t) {
               return (false);
  
  
  

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