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] Created: (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:19:13 GMT
[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

        

Mime
View raw message