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

Thomas Neidhart resolved COLLECTIONS-537.
-----------------------------------------
       Resolution: Fixed
    Fix Version/s: 4.1

Fixed in r1648561 for the following classes:

 * AllPredicate
 * AnyPredicate
 * NonePredicate
 * OnePredicate
 * ChainedTransformer
 * ChainedClosure

Thanks for the report!

> 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)

Reply via email to