You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2007/01/22 08:13:30 UTC

[jira] Commented: (HARMONY-3003) [classlib][luni]GregorianCalendar.get(Calendar.DAY_OF_MONTH) and get(Calendar.MONTH) return incorrect value

    [ https://issues.apache.org/jira/browse/HARMONY-3003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466400 ] 

Tony Wu commented on HARMONY-3003:
----------------------------------

verified at r498548. Thanks Mark.

> [classlib][luni]GregorianCalendar.get(Calendar.DAY_OF_MONTH) and get(Calendar.MONTH) return incorrect value
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3003
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3003
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>         Assigned To: Mark Hindess
>            Priority: Trivial
>         Attachments: harmony-3003.diff
>
>
> methods get(Calendar.DAY_OF_MONTH) and get(Calendar.MONTH) return incorrect value in the year at which the calendar changed to gregorian.
> following testcase illustrates this problem
>  public void test() {
>         Date date = new Date(Date.parse("Feb 28 00:00:01 GMT 2000"));
>         GregorianCalendar gc = new GregorianCalendar();
>         gc.setGregorianChange(date);
>         gc.setTimeInMillis(Date.parse("Dec 1 00:00:01 GMT 2000"));
>         assertEquals(1, gc.get(Calendar.DAY_OF_MONTH));
>         assertEquals(11, gc.get(Calendar.MONTH));
>     }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira