Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-543

AbstractCollectionDecorator should not delegate equals and hashcode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: None
    • Labels:
      None

      Description

      In order to preserve the symmetry of equals the AbstractCollectionDecorator shall not forward calls to equals and hashcode to the decorated collection.

      The test for equality usually also includes a test for the specific interface, e.g. List, which the collection decorator does not implement.

      The relevant sub-classes like AbstractListDecorator can delegate the calls to safely fulfill the Collections contract.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tn Thomas Neidhart
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: