You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Leo Li (JIRA)" <ji...@apache.org> on 2007/07/17 05:53:04 UTC

[jira] Resolved: (HARMONY-4327) [classlib][beans] Current bean implementation does not persist Collection and its subclasses correctly

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

Leo Li resolved HARMONY-4327.
-----------------------------

    Resolution: Fixed

Hi, Spark
    Patch applied at r556804. Thank you for your improvement. Please verify whether the problem is resolved as you expected. 

Good luck! 
Leo. 

> [classlib][beans] Current bean implementation does not persist Collection and its subclasses correctly
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4327
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4327
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: spark shen
>            Assignee: Leo Li
>         Attachments: hy-4327.patch, HY-4327.sh
>
>
> The following test case will pass on RI6, but will fail on harmony branch java6.
> public void test_writeObject_java_util_Collection() {
> 		ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
> 		XMLEncoder encoder = new XMLEncoder(new BufferedOutputStream(
> 			byteArrayOutputStream));
> 		LinkedList<Integer> list = new LinkedList<Integer>();
> 		list.add(10);
> 		list.addFirst(2);
> 		encoder.writeObject(list);
> 		encoder.close();
> 		DataInputStream stream = new DataInputStream(new ByteArrayInputStream(
> 				byteArrayOutputStream.toByteArray()));
> 		XMLDecoder decoder = new XMLDecoder(stream);
> 		LinkedList<Integer> l = (LinkedList<Integer>) decoder.readObject();
> 		assertEquals(list, l);
> 	}
> Harmony-branch-java6:
> expected:<[2, 10]> but was:<[]>
> RI:
> pass

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.