commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (COLLECTIONS-537) PredicateUtils (all|any)Predicate type misbehaviour Array vs. Collection
Date Fri, 27 Nov 2015 21:12:14 GMT

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

Mime
View raw message