Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 82533 invoked from network); 20 Jan 2006 22:54:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jan 2006 22:54:14 -0000 Received: (qmail 3942 invoked by uid 500); 20 Jan 2006 22:54:07 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 3889 invoked by uid 500); 20 Jan 2006 22:54:07 -0000 Mailing-List: contact harmony-dev-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-dev@incubator.apache.org Received: (qmail 3878 invoked by uid 99); 20 Jan 2006 22:54:07 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2006 14:54:04 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 4B915E0 for ; Fri, 20 Jan 2006 23:53:43 +0100 (CET) Message-ID: <1076278924.1137797623307.JavaMail.jira@ajax.apache.org> Date: Fri, 20 Jan 2006 23:53:43 +0100 (CET) From: "Vladimir Strigun (JIRA)" To: harmony-dev@incubator.apache.org Subject: [jira] Updated: (HARMONY-37) remove() method of IdentityHashMap works incorrectly In-Reply-To: <376017585.1137775002218.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-37?page=all ] Vladimir Strigun updated HARMONY-37: ------------------------------------ Attachment: IdentityHashMapTest.java test was updated > remove() method of IdentityHashMap works incorrectly > ---------------------------------------------------- > > Key: HARMONY-37 > URL: http://issues.apache.org/jira/browse/HARMONY-37 > Project: Harmony > Type: Bug > Components: Classlib > Reporter: Vladimir Strigun > Assignee: Tim Ellison > Attachments: IdentityHashMapTest.java, IdentityHashMapTest.java > > When user try to remove unexisting key from empty hashmap, size of object decreased to -1. > Testcase for reproducing: > import java.util.IdentityHashMap; > public class Harmony37 { > public static void main(String args[]) { > IdentityHashMap hashMap = new IdentityHashMap(); > hashMap.remove("unexist"); > if (hashMap.size() != 0) { > System.out.println("FAILED, because size="+hashMap.size()); > } > } > } -- 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