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/11/27 22:12:14 UTC
[jira] [Closed] (COLLECTIONS-543) AbstractCollectionDecorator
should not delegate equals and hashcode
[ https://issues.apache.org/jira/browse/COLLECTIONS-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Neidhart closed COLLECTIONS-543.
---------------------------------------
> 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)