You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "spark shen (JIRA)" <ji...@apache.org> on 2006/08/11 08:05:14 UTC

[jira] Updated: (HARMONY-1151) [classlib][luni] java.util.GregorianCalendar.getLeastMaximum() method does not return correct value

     [ http://issues.apache.org/jira/browse/HARMONY-1151?page=all ]

spark shen updated HARMONY-1151:
--------------------------------

    Attachment: harmony-1151.diff

Would you please try this patch?

Best regards,
Spark Shen

> [classlib][luni] java.util.GregorianCalendar.getLeastMaximum() method does not return correct value
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1151
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1151
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: spark shen
>         Attachments: harmony-1151.diff
>
>
> java.util.GregorianCalendar.getLeastMaximum() method does not return
> correct value. The expected return value is 50400000, but on harmony, the
> return value is 43200000.
> The following test case gives a hint.
> public void test_getLeastMaximum() {
>         GregorianCalendar gc;
>         for (String id : TimeZone.getAvailableIDs()) {
>             gc = new GregorianCalendar(TimeZone.getTimeZone(id));
>             assertEquals(50400000, gc.getLeastMaximum(Calendar.ZONE_OFFSET));
>         }
> }
> Test case passes on RI
>           fails  on Harmony
> I will attach a patch to fix it soon
> Best regards,
> Spark Shen

-- 
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