[jboss-jira] [JBoss JIRA] (JBLOGGING-75) The Logger should catch format exceptions in case of wrong usage of the formatted message methods

David Lloyd (Resolved) (JIRA) jira-events at lists.jboss.org
Fri Nov 25 23:47:40 EST 2011


     [ https://issues.jboss.org/browse/JBLOGGING-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Lloyd resolved JBLOGGING-75.
----------------------------------

    Fix Version/s: 3.1.0.CR3
       Resolution: Done

    
> The Logger should catch format exceptions in case of wrong usage of the formatted message methods
> -------------------------------------------------------------------------------------------------
>
>                 Key: JBLOGGING-75
>                 URL: https://issues.jboss.org/browse/JBLOGGING-75
>             Project: JBoss Logging
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.1.0.CR1
>            Reporter: Hardy Ferentschik
>            Assignee: David Lloyd
>             Fix For: 3.1.0.CR3
>
>
> This avoids exceptions like:
> {noformat}
> java.util.UnknownFormatConversionException: Conversion = '3'
> at java.util.Formatter.checkText(Formatter.java:2503)
> at java.util.Formatter.parse(Formatter.java:2485)
> at java.util.Formatter.format(Formatter.java:2414)
> at java.util.Formatter.format(Formatter.java:2367)
> at java.lang.String.format(String.java:2769)
> at org.jboss.logging.Log4jLogger.doLogf(Log4jLogger.java:48)
> at org.jboss.logging.Logger.logf(Logger.java:2143)
> at org.jboss.logging.DelegatingBasicLogger.debugf(DelegatingBasicLogger.java:227)
> at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:121)
> ...
> {noformat}
> See also [HHH-6817|https://hibernate.onjira.com/browse/HHH-6817]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list