Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 87D6A10603 for ; Tue, 30 Dec 2014 18:25:13 +0000 (UTC) Received: (qmail 20654 invoked by uid 500); 30 Dec 2014 18:25:13 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 20559 invoked by uid 500); 30 Dec 2014 18:25:13 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 20548 invoked by uid 99); 30 Dec 2014 18:25:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Dec 2014 18:25:13 +0000 Date: Tue, 30 Dec 2014 18:25:13 +0000 (UTC) From: "Thomas Neidhart (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (COLLECTIONS-537) PredicateUtils (all|any)Predicate type misbehaviour Array vs. Collection MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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" whereas the signature with Collection is typed "? extends Predicate", 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)