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/04 05:09:04 UTC

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

[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


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.


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

Posted by "spark shen (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Leo Li (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "spark shen (JIRA)" <ji...@apache.org>.
     [ 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 java6 bean implementation does not persist Collection and its subclasses correctly  (was: [classlib][java6][beans] Current java6 bean implementation does not persist Collection and its subclasses correctly)

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


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

Posted by "spark shen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

spark shen updated HARMONY-4327:
--------------------------------

    Attachment:     (was: HY-4327.patch)

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


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

Posted by "spark shen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

spark shen updated HARMONY-4327:
--------------------------------

    Attachment: hy-4327.patch

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


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

Posted by "spark shen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

spark shen updated HARMONY-4327:
--------------------------------

    Attachment: HY-4327.sh

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


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

Posted by "spark shen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

spark shen updated HARMONY-4327:
--------------------------------

    Attachment: HY-4327.patch

This patch tries to add a PersistenceDelegate for java.util.Collection. 

Best regards

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


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

Posted by "spark shen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

spark shen closed HARMONY-4327.
-------------------------------


Verified at r556816.

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


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

Posted by "Leo Li (JIRA)" <ji...@apache.org>.
     [ 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.