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

[jira] Resolved: (HARMONY-1037) [classlib][luni] java.util.GregorianCalendar.getMinimalDaysInFirstWeek() method does not return correct value

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

Paulex Yang resolved HARMONY-1037.
----------------------------------

    Resolution: Fixed

Spark, patch applied at revision r427909, thanks a lot for this enhancement, please verify that the problem is fully fixed as you expected.


> [classlib][luni] java.util.GregorianCalendar.getMinimalDaysInFirstWeek() method does not return correct value
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1037
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1037
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: spark shen
>         Assigned To: Paulex Yang
>         Attachments: Harmony-1037.diff
>
>
> When using time zone "Europe/London" and Locale("en", "GB")
> or time zone "Europe/London" and Locale("fr"),
> java.util.GregorianCalendar.getMinimalDaysInFirstWeek() method does not return
> correct value. The expected return value is 4, but on harmony, the returned value
> is 1.
> The following test case gives a hint.
> public void test_getMinimalDaysInFirstWeek() {
>         GregorianCalendar g = new GregorianCalendar(TimeZone
>                 .getTimeZone("Europe/London"), new Locale("en", "GB"));
>         int minimalDaysInFirstWeek = g.getMinimalDaysInFirstWeek();
>         assertEquals(4, minimalDaysInFirstWeek);
>         g = new GregorianCalendar(TimeZone.getTimeZone("Europe/London"),
>                 new Locale("fr"));
>         minimalDaysInFirstWeek = g.getMinimalDaysInFirstWeek();
>         assertEquals(4, minimalDaysInFirstWeek);
>     }
> Test case passes on RI
>           fails  on Harmony
> I will attach a patch to fix this problem.
> Spark Shen,
> Best regards

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