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:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]