harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-2959) [classlib][luni]GregorianCalendar.get(DAY_OF_YEAR) returns incorrect value sometimes
Date Wed, 10 Jan 2007 14:59:28 GMT

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

Tim Ellison resolved HARMONY-2959.
----------------------------------

    Resolution: Fixed

Thanks Tony.

Patch applied to LUNI module at repo revision r494836.

Please check carefully that it was applied as you expected, the patch did not apply cleanly
so I recreated the edits manually.


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

        

Mime
View raw message