ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carfield Yim" <carfi...@gmail.com>
Subject Re: found a bug in Jdk14LoggingImpl.java
Date Fri, 02 Feb 2007 04:28:32 GMT
You can make that work? I tried for half an hour before and wouldn't
make it work. Could you show us your config?

On 2/2/07, msr <msr@gmx.de> wrote:
> Hi!
>
> I found a bug in the com.ibatis.common.logging.jdk14Jdk14LoggingImpl
> class under Java 6.
>
> 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. Can anyone please fix this?
>
> Thanks a lot!
>
> Marc
>
>
>

Mime
View raw message