craigmcc 2003/01/31 20:11:04 Modified: logging/src/java/org/apache/commons/logging/impl LogFactoryImpl.java Log: Change the class used to detect whether JDK 1.4 is installed from "java.util.logging.Logger" to "java.sql.Savepoint". This means that a JDK 1.3 JVM with an alternative JSR-47 (logging jsr) implementation available will not be mis-identified as a JDK 1.4 system. PR: Bugzilla #16606 Submitted by: Andreas Wendt <wen at eigner.com> Revision Changes Path 1.21 +8 -8 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.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- LogFactoryImpl.java 23 Nov 2002 03:49:40 -0000 1.20 +++ LogFactoryImpl.java 1 Feb 2003 04:11:03 -0000 1.21 @@ -456,16 +456,16 @@ /** * MUST KEEP THIS METHOD PRIVATE - * + * * <p>Exposing this method outside of * <code>org.apache.commons.logging.LogFactoryImpl</code> * will create a security violation: * This method uses <code>AccessController.doPrivileged()</code>. * </p> - * + * * Load a class, try first the thread class loader, and * if it fails use the loader that loaded this class. - */ + */ private static Class loadClass( final String name ) throws ClassNotFoundException { @@ -519,7 +519,7 @@ protected boolean isJdk14Available() { try { - loadClass("java.util.logging.Logger"); + loadClass("java.sql.Savepoint"); loadClass("org.apache.commons.logging.impl.Jdk14Logger"); return (true); } catch (Throwable t) {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]