[jboss-jira] [JBoss JIRA] Created: (JBCACHE-765) implementation of equals() in collections is incorrect
Nitzan Niv (JIRA)
jira-events at jboss.com
Tue Sep 12 11:39:36 EDT 2006
implementation of equals() in collections is incorrect
------------------------------------------------------
Key: JBCACHE-765
URL: http://jira.jboss.com/jira/browse/JBCACHE-765
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: PojoCache
Reporter: Nitzan Niv
Assigned To: Ben Wang
The implementation of equals() is in PojoCache collections (List, Map) is incorrect (inconsistent with the List and Map interfaces behavior):
In Map, equals() returns true for two maps that have the same keys but different mapping (e.g., map1 = ["ID", "1"], map2 = "ID", "2"]).
In List, equals() returns true for two lists that have the same elements but in a different order (e.g., list1 = [1][2], list2 = [2][1]).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list