[
https://jira.jboss.org/browse/JGRP-1224?page=com.atlassian.jira.plugin.sy...
]
Robert Eden updated JGRP-1224:
------------------------------
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());
}
was:
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.
Fix is. Replace this:
public JDKLogImpl(Class category) {
logger=Logger.getLogger(category.toString());
}
With this:
public JDKLogImpl(Class category) {
logger=Logger.getLogger(category.getName());
}
JDKLogImpl category for Class is incorrect
------------------------------------------
Key: JGRP-1224
URL:
https://jira.jboss.org/browse/JGRP-1224
Project: JGroups
Issue Type: Bug
Affects Versions: 2.10
Environment: All
Reporter: Robert Eden
Assignee: Bela Ban
Priority: Minor
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());
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira