Commons Logging
  1. Commons Logging
  2. LOGGING-4

[logging] LogFactoryImpl does not compile on JDK1.2

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.4
    • Fix Version/s: 1.1.0
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      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?

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Resolved Resolved Closed Closed
        1167d 22h 44m 1 Henri Yandell 02/Jan/08 07:48
        Dennis Lundberg made changes -
        Fix Version/s 1.1.0 [ 12311848 ]
        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Henri Yandell made changes -
        Affects Version/s 1.0.4 [ 12311713 ]
        Henri Yandell made changes -
        Project Commons [ 12310458 ] Commons Logging [ 12310484 ]
        Component/s Logging [ 12311124 ]
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Key COM-1668 LOGGING-4
        Affects Version/s 1.0.4 [ 12311678 ]
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 31818 12341820
        Hide
        rdonkin@apache.org added a comment -

        Commited. Many thanks.

        Robert

        Show
        rdonkin@apache.org added a comment - Commited. Many thanks. Robert
        Karl created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Karl
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development