harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-468) CalendarTest compareTo test is unstable
Date Wed, 17 May 2006 08:38:07 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-468?page=all ]

Mark Hindess updated HARMONY-468:

    Attachment: unstable.calendar.test.diff

I think the first test is the only one that is really going to be a problem but the patch
adds clear calls to before all the set calls in this test.

> CalendarTest compareTo test is unstable
> ---------------------------------------
>          Key: HARMONY-468
>          URL: http://issues.apache.org/jira/browse/HARMONY-468
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Mark Hindess
>     Priority: Minor
>  Attachments: unstable.calendar.test.diff
> test_compareToLjava_util_Calendar is unstable.  (Insert a Thread.sleep(2000) at line
405 to see it fail.)
> The reason is that getInstance creates an entry with the current second and millisecond
values.  The
> set call retains these values unless clear is called first.  So the two identical sets
can have different second and millisecond values.

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:

View raw message