harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Hu (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-2122) [classlib][luni] Calendar incorrectly handle new AM_PM value setting
Date Thu, 07 Jun 2007 02:27:26 GMT

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

Robert Hu closed HARMONY-2122.
------------------------------


Fix verified.
Thanks a lot!

> [classlib][luni] Calendar incorrectly handle new AM_PM value setting
> --------------------------------------------------------------------
>
>                 Key: HARMONY-2122
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2122
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Robert Hu
>            Assignee: Paulex Yang
>            Priority: Minor
>         Attachments: Harmony2122.diff
>
>
> Following code is to test whether the Calendar.set(int,int) method successfully set the
new value of AM_PM.
>         
>         Calendar cal = Calendar.getInstance();
>         int oldValue = cal.get(Calendar.AM_PM);
>         int newValue = (oldValue == Calendar.AM)?Calendar.PM:Calendar.AM;
>         cal.set(Calendar.AM_PM, newValue);
>         newValue = cal.get(Calendar.AM_PM);
>         assertTrue(newValue!=oldValue);
> RI passes it
> Harmony failed it.
> The problem is maybe in the complete() method.

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