commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19364] - [Lang] time unit tests fail on Sundays
Date Sat, 24 May 2003 04:02:41 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19364>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19364

[Lang] time unit tests fail on Sundays





------- Additional Comments From phil@steitz.com  2003-05-24 04:02 -------
I am attaching another patch to CalendarUtilsTest.java that runs
testWeekIterator() in a loop, incrementing the reference date in a loop to hit
all days of the week.

This patch also fixes the error in the test identified above (Calendar.DATE
should be Calendar.DAY_OF_WEEK) in two places.  

Applying this patch will cause the test to hang, since it exposes the
CalendarUtils bug identified (and patched) by Mohan above.  This bug causes
getCalendarIterator(Calendar focus, int rangeStyle) to go into an infinite loop
when focus is a Sunday and rangeStyle is RANGE_WEEK_RELATIVE.  Mohan's patch to
CalendarUtils handles the boundary cases.  When it is applied, all tests,
(including the loop addition) succeed.

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


Mime
View raw message