]
Nitzan Niv updated JBCACHE-765:
-------------------------------
Attachment: CachedMapImpl.java
CachedListAbstract.java
Attached are versions with fixed equals().
The fixed List implementation also contains a hashCode caculation as defined in the List
Javadoc.
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
Fix For: 2.0.0
Attachments: CachedListAbstract.java, CachedMapImpl.java
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: