[jboss-jira] [JBoss JIRA] (JBAS-9504) SizeRotatingFileHandler bug

David Lloyd (JIRA) jira-events at lists.jboss.org
Wed Jul 18 10:05:06 EDT 2012


    [ https://issues.jboss.org/browse/JBAS-9504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706585#comment-12706585 ] 

David Lloyd commented on JBAS-9504:
-----------------------------------

What AS version was this seen in?  Which SizeRotatingFileHandler class (please give the fully qualified name)?
                
> SizeRotatingFileHandler bug
> ---------------------------
>
>                 Key: JBAS-9504
>                 URL: https://issues.jboss.org/browse/JBAS-9504
>             Project: Application Server 3  4  5 and 6
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Logging
>            Reporter: Ivan Chupakhin
>            Assignee: David Lloyd
>
> method preWrite :
> for (int i = maxBackupIndex - 1; i > 1; i--) 
> {
>    new File(file.getAbsolutePath() + "." + i).renameTo(new               c              File(file.getAbsolutePath() + "." + (i - 1)));
> }
> Logical error while renaming log files, the arguments of renameTo function are passed in the wrong order.

--
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