excalibur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shash Chatterjee (JIRA)" <...@excalibur.apache.org>
Subject [jira] Commented: (EXLBR-27) Assumes not specified behaviour of File.listFiles()
Date Thu, 11 Aug 2005 00:51:35 GMT
    [ http://issues.apache.org/jira/browse/EXLBR-27?page=comments#action_12318424 ] 

Shash Chatterjee commented on EXLBR-27:

I have (I hope) fixed this issue as documented in http://issues.apache.org/jira/browse/AVALON-7.
Can you please try with logkit-2.1-RC1 available at http://people.apache.org/~shash/dist/
If you agree, please close this issue.

> Assumes not specified behaviour of File.listFiles()
> ---------------------------------------------------
>          Key: EXLBR-27
>          URL: http://issues.apache.org/jira/browse/EXLBR-27
>      Project: Excalibur Components
>         Type: Bug
>     Reporter: Wolfgang Baer
>     Priority: Minor

> Hi,
> this affects the component logkit !!
> In org.apache.log.output.io.rotate.RevolvingFileStrategy is in the method
> calculateInitialRotation() assumed that the (log) files received by the call
> to getMatchingFiles() are in a specific order.
> getMatchingFiles() uses File.listFiles() from the SUN JDK to get the
> log files with a specific name. However according to sun API the order
> is not specified. Currently it works - however who knows the future.
> This output is assumed (for some log files):
> Name: ./log.000000
> Name: ./log.000001
> Name: ./log.000002
> Name: ./log.000003
> Name: ./log.000004
> Name: ./log.000005 
> org.apache.log.output.test.RevolvingFileStrategyTestCase testFullRotation() will 
> fail if the java runtime will return the reverse order like here:
> Name: ./log.000005
> Name: ./log.000004
> Name: ./log.000003
> Name: ./log.000002
> Name: ./log.000001
> Name: ./log.000000 
> Thanks for considering,
> Wolfgang

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org

View raw message