You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "spark shen (JIRA)" <ji...@apache.org> on 2007/07/16 11:22:04 UTC
[jira] Updated: (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 ]
spark shen updated HARMONY-4327:
--------------------------------
Summary: [classlib][beans] Current bean implementation does not persist Collection and its subclasses correctly (was: [classlib][beans] Current java6 bean implementation does not persist Collection and its subclasses correctly)
> [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
>
>
> 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.