excalibur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wolfgang Baer (JIRA)" <...@excalibur.apache.org>
Subject [jira] Created: (EXLBR-27) Assumes not specified behaviour of File.listFiles()
Date Wed, 10 Aug 2005 17:03:35 GMT
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


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,

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