XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.1
    • None
    • None
    • Sun JDK 6

    Description

      I found a bug in the com.ibatis.common.logging.jdk14Jdk14LoggingImpl class under Java 6 (maybe also for earlier versions of Java).

      Look at the constructor:

      public Jdk14LoggingImpl(Class clazz) {
      log = Logger.getLogger(clazz.toString());
      }

      Under Java 6 the toString() Method of Class returns the name of the class prefixed with "class " or "interface"! So you will never get the correct JDK logger.

      A better an working solution would be to use the getName() method instead of the toString() method.

      Attachments

        Activity

          People

            Unassigned Unassigned
            m-sr M. Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: