harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Wu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2947) [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50
Date Thu, 01 Feb 2007 02:35:06 GMT

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

Tony Wu commented on HARMONY-2947:
----------------------------------

verified at r502058, thanks Richard.

> [classlib][luni]GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return
50
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2947
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2947
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>         Assigned To: Richard Liang
>         Attachments: harmony-2947.diff
>
>
> GregorianCalendar.getLeastMaximum(Calendar.WEEK_OF_YEAR) always return 50 in Harmony.
> But spec says that it should take into consideration the current values of the getFirstDayOfWeek,
getMinimalDaysInFirstWeek, getGregorianChange and getTimeZone methods.
> For example, following testcase fails on Harmony but passes on RI.
> public void test() {
>         Date date = new Date(Date.parse("Jan 1 00:00:01 GMT 2000"));
>         GregorianCalendar gc = new GregorianCalendar();
>         gc.setGregorianChange(date);
>         gc.setMinimalDaysInFirstWeek(7);
>         assertEquals(52, gc.getLeastMaximum(Calendar.WEEK_OF_YEAR));
>     }

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


Mime
View raw message