You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2007/01/10 12:01:27 UTC

[jira] Commented: (HARMONY-2961) [classlib][luni]not able to instance a GregorianCalendar with TimeZone whose offset is greater than 24 hours

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

Tony Wu commented on HARMONY-2961:
----------------------------------

patch available, would you pls try it, thanks a lot.

> [classlib][luni]not able to instance a GregorianCalendar with TimeZone whose offset is greater than 24 hours
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2961
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2961
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>         Attachments: harmony-2961.diff
>
>
> not able to instance a GregorianCalendar with TimeZone whose offset is greater than 24 hours.
> following testcase passes on RI but throws IllegalArgumentException on Harmony.
> public void test() {
>         SimpleTimeZone timezone = new SimpleTimeZone(-3600 * 24 * 1000 * 2, "GMT");
>         GregorianCalendar gc = new GregorianCalendar(timezone);
> }

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