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 2006/08/07 12:19:13 UTC
[jira] Created: (HARMONY-1079) [classlib][luni] Serialized form of
java.util.IdentityHashMap from RI can not be properly deserialized by
Harmony
[classlib][luni] Serialized form of java.util.IdentityHashMap from RI can not be properly deserialized by Harmony
-----------------------------------------------------------------------------------------------------------------
Key: HARMONY-1079
URL: http://issues.apache.org/jira/browse/HARMONY-1079
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: spark shen
Serialized form of java.util.IdentityHashMap from RI can
not be properly deserialized by Harmony. An EOFException will be thrown out.
The following test case shows this:
public void test_serialization_compatibility() throws Exception {
IdentityHashMap<String, String> identityHashMap = new
IdentityHashMap<String, String>();
identityHashMap.put("key1", "value1");
identityHashMap.put("key2", "value2");
identityHashMap.put("key3", "value3");
IdentityHashMap<String, String> nobj = (IdentityHashMap<String,
String>) SerializationTester
.readObject(identityHashMap,
"serialization/java/util/IdentityHashMapTest.golden.0.ser");
}
IdentityHashMapTest.golden.0.ser is written out on RI
The test case will pass on RI, but fail on Harmony.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (HARMONY-1079) [classlib][luni] Serialized form of
java.util.IdentityHashMap from RI can not be properly deserialized by
Harmony
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1079?page=all ]
Tim Ellison closed HARMONY-1079.
--------------------------------
Verified by Spark.
> [classlib][luni] Serialized form of java.util.IdentityHashMap from RI can not be properly deserialized by Harmony
> -----------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-1079
> URL: http://issues.apache.org/jira/browse/HARMONY-1079
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: spark shen
> Assigned To: Tim Ellison
> Attachments: Harmony-1079.zip
>
>
> Serialized form of java.util.IdentityHashMap from RI can
> not be properly deserialized by Harmony. An EOFException will be thrown out.
> The following test case shows this:
> public void test_serialization_compatibility() throws Exception {
> IdentityHashMap<String, String> identityHashMap = new
> IdentityHashMap<String, String>();
> identityHashMap.put("key1", "value1");
> identityHashMap.put("key2", "value2");
> identityHashMap.put("key3", "value3");
> IdentityHashMap<String, String> nobj = (IdentityHashMap<String,
> String>) SerializationTester
> .readObject(identityHashMap,
>
> "serialization/java/util/IdentityHashMapTest.golden.0.ser");
> }
> IdentityHashMapTest.golden.0.ser is written out on RI
> The test case will pass on RI, but fail on Harmony.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (HARMONY-1079) [classlib][luni] Serialized form
of java.util.IdentityHashMap from RI can not be properly deserialized by
Harmony
Posted by "spark shen (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1079?page=comments#action_12426461 ]
spark shen commented on HARMONY-1079:
-------------------------------------
Hi Tim,
The patch looks fine, thank you very much.
Best regards
Andrew
> [classlib][luni] Serialized form of java.util.IdentityHashMap from RI can not be properly deserialized by Harmony
> -----------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-1079
> URL: http://issues.apache.org/jira/browse/HARMONY-1079
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: spark shen
> Assigned To: Tim Ellison
> Attachments: Harmony-1079.zip
>
>
> Serialized form of java.util.IdentityHashMap from RI can
> not be properly deserialized by Harmony. An EOFException will be thrown out.
> The following test case shows this:
> public void test_serialization_compatibility() throws Exception {
> IdentityHashMap<String, String> identityHashMap = new
> IdentityHashMap<String, String>();
> identityHashMap.put("key1", "value1");
> identityHashMap.put("key2", "value2");
> identityHashMap.put("key3", "value3");
> IdentityHashMap<String, String> nobj = (IdentityHashMap<String,
> String>) SerializationTester
> .readObject(identityHashMap,
>
> "serialization/java/util/IdentityHashMapTest.golden.0.ser");
> }
> IdentityHashMapTest.golden.0.ser is written out on RI
> The test case will pass on RI, but fail on Harmony.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (HARMONY-1079) [classlib][luni] Serialized form of
java.util.IdentityHashMap from RI can not be properly deserialized by
Harmony
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1079?page=all ]
Tim Ellison resolved HARMONY-1079.
----------------------------------
Resolution: Fixed
Thanks Spark.
Patch applied to LUNI module at repo revision r429368.
Please check that it was applied as you expected.
> [classlib][luni] Serialized form of java.util.IdentityHashMap from RI can not be properly deserialized by Harmony
> -----------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-1079
> URL: http://issues.apache.org/jira/browse/HARMONY-1079
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: spark shen
> Assigned To: Tim Ellison
> Attachments: Harmony-1079.zip
>
>
> Serialized form of java.util.IdentityHashMap from RI can
> not be properly deserialized by Harmony. An EOFException will be thrown out.
> The following test case shows this:
> public void test_serialization_compatibility() throws Exception {
> IdentityHashMap<String, String> identityHashMap = new
> IdentityHashMap<String, String>();
> identityHashMap.put("key1", "value1");
> identityHashMap.put("key2", "value2");
> identityHashMap.put("key3", "value3");
> IdentityHashMap<String, String> nobj = (IdentityHashMap<String,
> String>) SerializationTester
> .readObject(identityHashMap,
>
> "serialization/java/util/IdentityHashMapTest.golden.0.ser");
> }
> IdentityHashMapTest.golden.0.ser is written out on RI
> The test case will pass on RI, but fail on Harmony.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (HARMONY-1079) [classlib][luni] Serialized form of
java.util.IdentityHashMap from RI can not be properly deserialized by
Harmony
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1079?page=all ]
Tim Ellison reassigned HARMONY-1079:
------------------------------------
Assignee: Tim Ellison
> [classlib][luni] Serialized form of java.util.IdentityHashMap from RI can not be properly deserialized by Harmony
> -----------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-1079
> URL: http://issues.apache.org/jira/browse/HARMONY-1079
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: spark shen
> Assigned To: Tim Ellison
> Attachments: Harmony-1079.zip
>
>
> Serialized form of java.util.IdentityHashMap from RI can
> not be properly deserialized by Harmony. An EOFException will be thrown out.
> The following test case shows this:
> public void test_serialization_compatibility() throws Exception {
> IdentityHashMap<String, String> identityHashMap = new
> IdentityHashMap<String, String>();
> identityHashMap.put("key1", "value1");
> identityHashMap.put("key2", "value2");
> identityHashMap.put("key3", "value3");
> IdentityHashMap<String, String> nobj = (IdentityHashMap<String,
> String>) SerializationTester
> .readObject(identityHashMap,
>
> "serialization/java/util/IdentityHashMapTest.golden.0.ser");
> }
> IdentityHashMapTest.golden.0.ser is written out on RI
> The test case will pass on RI, but fail on Harmony.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (HARMONY-1079) [classlib][luni] Serialized form of
java.util.IdentityHashMap from RI can not be properly deserialized by
Harmony
Posted by "spark shen (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1079?page=all ]
spark shen updated HARMONY-1079:
--------------------------------
Attachment: Harmony-1079.zip
This zip file contains both the patch and the serialization file. Copy the serialization file IdentityHashMapTest.golden.0.ser into folder <luni-project>\src\test\resources\serialization\java\util, and apply the patch.
Would you please try it?
Best regards
> [classlib][luni] Serialized form of java.util.IdentityHashMap from RI can not be properly deserialized by Harmony
> -----------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-1079
> URL: http://issues.apache.org/jira/browse/HARMONY-1079
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: spark shen
> Attachments: Harmony-1079.zip
>
>
> Serialized form of java.util.IdentityHashMap from RI can
> not be properly deserialized by Harmony. An EOFException will be thrown out.
> The following test case shows this:
> public void test_serialization_compatibility() throws Exception {
> IdentityHashMap<String, String> identityHashMap = new
> IdentityHashMap<String, String>();
> identityHashMap.put("key1", "value1");
> identityHashMap.put("key2", "value2");
> identityHashMap.put("key3", "value3");
> IdentityHashMap<String, String> nobj = (IdentityHashMap<String,
> String>) SerializationTester
> .readObject(identityHashMap,
>
> "serialization/java/util/IdentityHashMapTest.golden.0.ser");
> }
> IdentityHashMapTest.golden.0.ser is written out on RI
> The test case will pass on RI, but fail on Harmony.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira