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

AbstractCollectionDecorator should not delegate equals and hashcode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.1
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: