Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 15455 invoked from network); 14 Nov 2006 10:23:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2006 10:23:59 -0000 Received: (qmail 68364 invoked by uid 500); 14 Nov 2006 10:24:09 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 68341 invoked by uid 500); 14 Nov 2006 10:24:09 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 68330 invoked by uid 99); 14 Nov 2006 10:24:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Nov 2006 02:24:09 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Nov 2006 02:23:58 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5C72B7142CD for ; Tue, 14 Nov 2006 02:23:38 -0800 (PST) Message-ID: <21681315.1163499818376.JavaMail.jira@brutus> Date: Tue, 14 Nov 2006 02:23:38 -0800 (PST) From: "Alexey Varlamov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Closed: (HARMONY-2181) [classlib][luni]Property fails to remove entry by iteration. In-Reply-To: <8795163.1163482777136.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/HARMONY-2181?page=all ] Alexey Varlamov closed HARMONY-2181. ------------------------------------ Resolution: Fixed Thanks for finding and fixing. The patch applied at r474719 > [classlib][luni]Property fails to remove entry by iteration. > ------------------------------------------------------------ > > Key: HARMONY-2181 > URL: http://issues.apache.org/jira/browse/HARMONY-2181 > Project: Harmony > Issue Type: Bug > Reporter: Leo Li > Assigned To: Alexey Varlamov > Attachments: patch.diff > > > Here is the testcase: > public void testRemoveEntry() > { > Properties props = new Properties(); > props.setProperty( "my.nonexistent.prop", "AAA" ); > props.setProperty( "parse.error", "BBB" ); > Iterator iterator = props.entrySet().iterator(); > while(iterator.hasNext()) > { > Map.Entry entry = ( Map.Entry ) iterator.next(); > final Object value = entry.getValue(); > System.out.println(value); > if(value.equals("AAA")) > { > iterator.remove(); > } > } > assertNull(props.getProperty("my.nonexistent.prop")); > } > Testcase result: > RI passes. > Harmony fails. -- 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