harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stuart McCulloch (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6419) [classlib][luni] Changes to IdentityHashMap entrySet doesn't reflect underlying map
Date Fri, 24 Sep 2010 15:01:35 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12914495#action_12914495
] 

Stuart McCulloch commented on HARMONY-6419:
-------------------------------------------

FYI, this bug is the reason why recent Maven3 release candidates fail on IBM JDKs, so it would
be good to know if this will be fixed in the near term.
In the meantime we'll attempt to workaround this bug, but I'm really surprised this fundamentally
broken behavior has remained unfixed for so long.

> [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
>         Attachments: 6419.patch
>
>
> 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.


Mime
View raw message