You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "M. Schneider (JIRA)" <ib...@incubator.apache.org> on 2007/02/01 20:57:05 UTC
[jira] Created: (IBATIS-387) bug in Jdk14LoggingImpl
bug in Jdk14LoggingImpl
-----------------------
Key: IBATIS-387
URL: https://issues.apache.org/jira/browse/IBATIS-387
Project: iBatis for Java
Issue Type: Bug
Environment: Sun JDK 6
Reporter: M. Schneider
Priority: Minor
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Created: (IBATIS-387) bug in Jdk14LoggingImpl
Posted by Larry Meadors <lm...@apache.org>.
This is fixed in SVN now.
Larry
On 2/1/07, M. Schneider (JIRA) <ib...@incubator.apache.org> wrote:
> bug in Jdk14LoggingImpl
> -----------------------
>
> Key: IBATIS-387
> URL: https://issues.apache.org/jira/browse/IBATIS-387
> Project: iBatis for Java
> Issue Type: Bug
> Environment: Sun JDK 6
> Reporter: M. Schneider
> Priority: Minor
>
>
> 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.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
[jira] Closed: (IBATIS-387) bug in Jdk14LoggingImpl
Posted by "Larry Meadors (JIRA)" <ib...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/IBATIS-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Larry Meadors closed IBATIS-387.
--------------------------------
> bug in Jdk14LoggingImpl
> -----------------------
>
> Key: IBATIS-387
> URL: https://issues.apache.org/jira/browse/IBATIS-387
> Project: iBatis for Java
> Issue Type: Bug
> Environment: Sun JDK 6
> Reporter: M. Schneider
> Priority: Minor
> Fix For: 2.3.1
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.