harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-4327) [classlib][java6][beans] Current java6 bean implementation does not persist Collection and its subclasses correctly
Date Wed, 04 Jul 2007 06:20:05 GMT

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

Leo Li reassigned HARMONY-4327:
-------------------------------

    Assignee: Leo Li

> [classlib][java6][beans] Current java6 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
>
> 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.


Mime
View raw message