You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2010/12/15 17:16:04 UTC
[jira] Commented: (HARMONY-6419) [classlib][luni] Changes to
IdentityHashMap entrySet doesn't reflect underlying map
[ https://issues.apache.org/jira/browse/HARMONY-6419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12971722#action_12971722 ]
Hudson commented on HARMONY-6419:
---------------------------------
Integrated in Harmony-1.5-head-linux-x86_64 #1024 (See [https://hudson.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/1024/])
> [classlib][luni] Changes to IdentityHashMap entrySet doesn't reflect underlying map
> -----------------------------------------------------------------------------------
>
> Key: HARMONY-6419
> URL: https://issues.apache.org/jira/browse/HARMONY-6419
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M12
> Reporter: Tim Ellison
> Assignee: Tim Ellison
> Fix For: 5.0M16
>
> Attachments: 6419.patch, HARMONY-6419v2.diff
>
>
> The following test fails on Harmony.
> (With thanks to http://blogs.oracle.com/charlesLamb/2010/01/harmonydavlik_identityhashmap.html)
> import java.util.IdentityHashMap;
> import java.util.Set;
> import java.util.Map.Entry;
> import junit.framework.TestCase;
> public class IHMTest extends TestCase {
> public void testEntrySet() {
> IdentityHashMap<String, String> ihm = new IdentityHashMap<String, String>();
> String key = "key";
> String value = "value";
> ihm.put(key, value);
> Set<Entry<String, String>> set = ihm.entrySet();
> assertEquals(1, set.size());
> Entry<String, String> entry = set.iterator().next();
> String newValue = "newvalue";
> entry.setValue(newValue);
> assertSame(newValue, ihm.get(key));
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.