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] Updated: (HARMONY-475) java.util.Calendar.clone() does not deep clone the time zone
Date Thu, 18 May 2006 09:43:06 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-475?page=all ]

Paulex Yang updated HARMONY-475:
--------------------------------

    Attachment: 01.harmony475.diff

please try this patch, thanks.

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