Frank Jakop created COLLECTIONS-537:
---------------------------------------

             Summary: 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


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