commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31818] New: - LogFactoryImpl does not compile on JDK1.2
Date Thu, 21 Oct 2004 02:04:01 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31818>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31818

LogFactoryImpl does not compile on JDK1.2

           Summary: LogFactoryImpl does not compile on JDK1.2
           Product: Commons
           Version: 1.0.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Logging
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: kstrauss@printingforsystems.com


When you compile using JDK1.2 you get the following error message:
[javac]
/home/kstrauss/cvs/updated/PSI_PsUtil/org/apache/commons/logging/impl/LogFactoryImpl.java:457:
No method matching getContextClassLoader() found in class
org.apache.commons.logging.impl.LogFactoryImpl.
    [javac]                     ClassLoader threadCL = getContextClassLoader();

It does however compile succesfully under JDK1.4

I believe that this is related to a bug in the Javac compiler (see
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4269441)

Using this as a base the following addition will enable the class to compile
under JDK1.2.

protected static ClassLoader getContextClassLoader() throws
LogConfigurationException
{
            return LogFactory.getContextClassLoader();
}

Can we add this?

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