harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "spark shen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1079) [classlib][luni] Serialized form of java.util.IdentityHashMap from RI can not be properly deserialized by Harmony
Date Mon, 07 Aug 2006 10:41:14 GMT
     [ 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

        

Mime
View raw message