Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 19163 invoked from network); 9 Dec 2008 09:06:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Dec 2008 09:06:10 -0000 Received: (qmail 19630 invoked by uid 500); 9 Dec 2008 09:06:21 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 19544 invoked by uid 500); 9 Dec 2008 09:06:21 -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 19533 invoked by uid 99); 9 Dec 2008 09:06:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 01:06:21 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 09:06:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5845B234C34F for ; Tue, 9 Dec 2008 01:05:44 -0800 (PST) Message-ID: <1452533685.1228813544360.JavaMail.jira@brutus> Date: Tue, 9 Dec 2008 01:05:44 -0800 (PST) From: "Henri Yandell (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (COLLECTIONS-307) SetUniqueList.subList().contains() method checks against full parent list, not sublist range In-Reply-To: <2141987589.1226509184523.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COLLECTIONS-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Henri Yandell updated COLLECTIONS-307: -------------------------------------- Fix Version/s: 3.3 > SetUniqueList.subList().contains() method checks against full parent list, not sublist range > -------------------------------------------------------------------------------------------- > > Key: COLLECTIONS-307 > URL: https://issues.apache.org/jira/browse/COLLECTIONS-307 > Project: Commons Collections > Issue Type: Bug > Components: List > Affects Versions: 3.2 > Reporter: Christian Semrau > Priority: Minor > Fix For: 3.3 > > > The view returned by the subList() method of a SetUniqueList checks contains() against the set of the original list. > As shown by the following test snippet. > List list = new ArrayList(); > List uniqueList = SetUniqueList.decorate(list); > uniqueList.add("Hello"); > uniqueList.add("World"); > List subList = list.subList(0, 0); > List subUniqueList = uniqueList.subList(0, 0); > assertFalse(subList.contains("World")); // passes > assertFalse(subUniqueList.contains("World")); // fails -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.