Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 39274 invoked from network); 19 Nov 2010 09:42:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 09:42:06 -0000 Received: (qmail 48345 invoked by uid 500); 19 Nov 2010 09:42:37 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 48222 invoked by uid 500); 19 Nov 2010 09:42:35 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 48214 invoked by uid 99); 19 Nov 2010 09:42:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 09:42:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 09:42:34 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAJ9gEKP013071 for ; Fri, 19 Nov 2010 09:42:14 GMT Message-ID: <10162704.193701290159734405.JavaMail.jira@thor> Date: Fri, 19 Nov 2010 04:42:14 -0500 (EST) From: "Kevin Zhou (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-6419) [classlib][luni] Changes to IdentityHashMap entrySet doesn't reflect underlying map MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HARMONY-6419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Zhou updated HARMONY-6419: -------------------------------- Attachment: HARMONY-6419v2.diff Hi Tim, I make a new patch for this problem. It passes the tests, would you please help to review it? > [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 > Fix For: 6.0M4, 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 ihm = new IdentityHashMap(); > String key = "key"; > String value = "value"; > ihm.put(key, value); > Set> set = ihm.entrySet(); > assertEquals(1, set.size()); > Entry 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.