harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulex Yang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-475) java.util.Calendar.clone() does not deep clone the time zone
Date Thu, 18 May 2006 11:58:06 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-475?page=comments#action_12412333 ] 

Paulex Yang commented on HARMONY-475:
-------------------------------------

looks fine, thank you, Stepan.

> java.util.Calendar.clone() does not deep clone the time zone
> ------------------------------------------------------------
>
>          Key: HARMONY-475
>          URL: http://issues.apache.org/jira/browse/HARMONY-475
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: Stepan Mishura
>     Priority: Minor
>  Attachments: 01.harmony475.diff
>
> The test case below shows that Calendar should deep clone time zone field, but Harmony
doesn't.
> public void test_clone() {
> 		Calendar cal = Calendar.getInstance();
> 		cal.set(2006, 5, 6, 11, 35);
> 		Calendar anotherCal = (Calendar) cal.clone();
> 		// should be deep clone
> 		assertTrue(cal.getTimeZone() != anotherCal.getTimeZone());
> 	}
> RI 5.0 passes
> Harmony fails

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


Mime
View raw message