You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Robert Hu (JIRA)" <ji...@apache.org> on 2006/10/19 07:19:36 UTC
[jira] Commented: (HARMONY-1583) [classlib][luni] HashMap can not
handle de-serialization of object with null key correctly
[ http://issues.apache.org/jira/browse/HARMONY-1583?page=comments#action_12443416 ]
Robert Hu commented on HARMONY-1583:
------------------------------------
Yes, verified.
Thanks and sorry for reply so late.
> [classlib][luni] HashMap can not handle de-serialization of object with null key correctly
> ------------------------------------------------------------------------------------------
>
> Key: HARMONY-1583
> URL: http://issues.apache.org/jira/browse/HARMONY-1583
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Robert Hu
> Assigned To: Paulex Yang
> Priority: Minor
> Attachments: patch.diff
>
>
> When a HashMap object has a null key, Harmony will fail in de-serialization.
> Test Case:
> HashMap<String, String> hm = new HashMap<String, String>();
> hm.put(null, "null");
> SerializationTest.verifySelf(hm);
> RI: pass
> Harmony: java.lang.NullPointerException thrown.
> I'll upload a patch for it.
--
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