Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 46380 invoked from network); 9 Dec 2010 10:10:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Dec 2010 10:10:29 -0000 Received: (qmail 48277 invoked by uid 500); 9 Dec 2010 10:10:29 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 48170 invoked by uid 500); 9 Dec 2010 10:10:27 -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 48163 invoked by uid 99); 9 Dec 2010 10:10:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 10:10:26 +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; Thu, 09 Dec 2010 10:10:24 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB9AA2Tk012623 for ; Thu, 9 Dec 2010 10:10:02 GMT Message-ID: <593446.34001291889402650.JavaMail.jira@thor> Date: Thu, 9 Dec 2010 05:10:02 -0500 (EST) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tim Ellison resolved HARMONY-6419. ---------------------------------- Resolution: Fixed Fix Version/s: (was: 6.0M4) Thanks Kevin. Patch applied to LUNI module, along with a testcase, at repo revision r1043880. Please verify it was applied as you expected. > [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 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.