[ http://issues.apache.org/jira/browse/HARMONY-1151?page=all ]
Paulex Yang resolved HARMONY-1151.
----------------------------------
Resolution: Fixed
Spark, patch applied at revision r430763, thanks a lot for this enhancement, please verify
that the problem is fully fixed as you expected.
> [classlib][luni] java.util.GregorianCalendar.getLeastMaximum() method does not return
correct value
> ---------------------------------------------------------------------------------------------------
>
> Key: HARMONY-1151
> URL: http://issues.apache.org/jira/browse/HARMONY-1151
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: spark shen
> Assigned To: Paulex Yang
> Attachments: harmony-1151.diff
>
>
> java.util.GregorianCalendar.getLeastMaximum() method does not return
> correct value. The expected return value is 50400000, but on harmony, the
> return value is 43200000.
> The following test case gives a hint.
> public void test_getLeastMaximum() {
> GregorianCalendar gc;
> for (String id : TimeZone.getAvailableIDs()) {
> gc = new GregorianCalendar(TimeZone.getTimeZone(id));
> assertEquals(50400000, gc.getLeastMaximum(Calendar.ZONE_OFFSET));
> }
> }
> Test case passes on RI
> fails on Harmony
> I will attach a patch to fix it soon
> Best regards,
> Spark Shen
--
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
|