Uploaded image for project: 'JBoss Cache'
  1. JBoss Cache
  2. JBCACHE-765

implementation of equals() in collections is incorrect

    Details

      Description

      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]).

        Gliffy Diagrams

          Attachments

          1. CachedListAbstract.java
            4 kB
          2. CachedListAbstract.java
            4 kB
          3. CachedMapImpl.java
            9 kB
          4. CachedMapImpl.java
            9 kB

            Activity

              People

              • Assignee:
                ben.wang Ben Wang (Inactive)
                Reporter:
                nniv Nitzan Niv
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: