You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (JIRA)" <ji...@apache.org> on 2015/01/07 23:06:34 UTC
[jira] [Created] (COLLECTIONS-543) AbstractCollectionDecorator
should not delegate equals and hashcode
Thomas Neidhart created COLLECTIONS-543:
-------------------------------------------
Summary: AbstractCollectionDecorator should not delegate equals and hashcode
Key: COLLECTIONS-543
URL: https://issues.apache.org/jira/browse/COLLECTIONS-543
Project: Commons Collections
Issue Type: Bug
Affects Versions: 4.0
Reporter: Thomas Neidhart
Fix For: 4.1
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)