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] Commented: (HARMONY-1079) [classlib][luni] Serialized form of java.util.IdentityHashMap from RI can not be properly deserialized by Harmony
Date Tue, 08 Aug 2006 06:41:15 GMT
    [ 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

        

Mime
View raw message