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/04 08:20:05 UTC
[jira] Assigned: (HARMONY-4327) [classlib][java6][beans] Current
java6 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 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.