[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3753) Upgrade to SLF4J version 1.5.6

Ceki Gulcu (JIRA) noreply at atlassian.com
Thu Jun 11 02:56:13 EDT 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33385#action_33385 ] 

Ceki Gulcu commented on HHH-3753:
---------------------------------

Indeed, LoggerFactory is part of slf4j-api. It's the class which builds loggers. Along with the org.slf4j.Logger interface, it is one of the two most central classes in SLF4J. Given the bug mentioned previously, SLF4J version 1.5.5 and 1.5.6 were unusable under JDK 1.4, but only if a version incompatibility was detected. Instead of emitting a clear warning message, a NoClassDefFoundError would be thrown.

Does Hibernate target JDK 1.4 or does it target JDK 1.5? Looking at  "hibernate-core-parent-2.pom" it looks like the minimal target is JDK 1.4. Would it be from Hibernate's point of view if SLF4J targeted JDK 1.5 in future versions?


> Upgrade to SLF4J version 1.5.6
> ------------------------------
>
>                 Key: HHH-3753
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3753
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: core
>            Reporter: Ceki Gulcu
>            Assignee: Steve Ebersole
>             Fix For: 3.3.x, 3.5
>
>
> I would like to suggest that hibernate upgrade to SLF4J version 1.5.6 (the trunk currently uses 1.5.2). Several important bugs were fixed between 1.5.2 and 1.5.6. Just as importantly, 1.5.6 is more tolerant when there is a mismatch between the slf4j-api and its binding (e.g. slf4j-log4j12). The version mismatch problem (see [1]) seems to pose problems to several users. 
> We are taking this issue seriously. SLF4J version 1.5.6 mitigates this problem by alerting the user about SLF4J version mismatches. (Thus, instead of a mysterious exception, the user gets an explanation pinpointing the problem.) We are also working on making slf4j-api and its bindings to mix and match independenly of their versions.
> Anyway, I think upgrading to SLF4J 1.5.6 would benefit hibernate users.
> [1] http://slf4j.org/faq.html#compatibility

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list