[jira] Updated: (HARMONY-37) remove() method of IdentityHashMap works incorrectly
[ 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
[jira] Updated: (HARMONY-37) remove() method of IdentityHashMap works incorrectly
[ http://issues.apache.org/jira/browse/HARMONY-37?page=all ] Vladimir Strigun updated HARMONY-37: Attachment: IdentityHashMapTest.java regression test > 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 > Attachments: 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