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/03/15 04:17:09 UTC

[jira] Updated: (HARMONY-2959) [classlib][luni]GregorianCalendar.get(DAY_OF_YEAR) returns incorrect value sometimes

     [ https://issues.apache.org/jira/browse/HARMONY-2959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tony Wu updated HARMONY-2959:
-----------------------------

    Attachment: harmony-2959-new.diff

new patch. would you please try it?
refer to http://www.mail-archive.com/dev@harmony.apache.org/msg05594.html

> [classlib][luni]GregorianCalendar.get(DAY_OF_YEAR) returns incorrect value sometimes
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2959
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2959
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>         Assigned To: Tim Ellison
>         Attachments: harmony-2959-new.diff, harmony-2959.diff
>
>
> Following testcase passes on RI whereas fails on Harmony.
> public void test() {
>         Date date = new Date(Date.parse("Jan 15 00:00:01 GMT 2000"));
>         GregorianCalendar gc = new GregorianCalendar();
>         gc.setGregorianChange(date);
>         gc.setTimeInMillis(Date.parse("Dec 24 00:00:01 GMT 2000"));
>         assertEquals(346, gc.get(Calendar.DAY_OF_YEAR));
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.