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-537) PredicateUtils (all|any)Predicate type misbehaviour Array vs. Collection

     [ https://issues.apache.org/jira/browse/COLLECTIONS-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Neidhart closed COLLECTIONS-537.
---------------------------------------

> PredicateUtils (all|any)Predicate type misbehaviour Array vs. Collection
> ------------------------------------------------------------------------
>
>                 Key: COLLECTIONS-537
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-537
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Functor
>    Affects Versions: 4.0
>            Reporter: Frank Jakop
>             Fix For: 4.1
>
>
> Migrating from collections-generic to collections4 we encountered a type problem with PredicateUtils. When you look at the method anyPredicate(), the signature with array is typed with "Predicate<? super T>" whereas the signature with Collection is typed "? extends Predicate<T>", so the both methods are not equivalent.
> We think both methods should have the same types, so it would not break compatibility with a lot of legacy code.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)