Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1224

JDKLogImpl category for Class is incorrect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 2.10
    • 2.10
    • None
    • Low
    • Workaround Exists
    • Hide

      When specifying the category, the user must append "class " before the class name they would expect.

      Show
      When specifying the category, the user must append "class " before the class name they would expect.

    Description

      The JDKLogImpl class initializes the category using Class.toString, but should instead be using getName(). The toString() produces values such as "class org.jgroups.conf.ConfiguratorFactory" when we just want the class name.

      The fix is to replace this:
      public JDKLogImpl(Class category)

      { logger=Logger.getLogger(category.toString()); }

      With this:
      public JDKLogImpl(Class category)

      { logger=Logger.getLogger(category.getName()); }

      Attachments

        Activity

          People

            rhn-engineering-bban Bela Ban
            reden_jira Robert Eden (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: