Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 78628 invoked from network); 12 Nov 2008 17:00:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Nov 2008 17:00:39 -0000 Received: (qmail 38399 invoked by uid 500); 12 Nov 2008 17:00:42 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 38344 invoked by uid 500); 12 Nov 2008 17:00:42 -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 38324 invoked by uid 99); 12 Nov 2008 17:00:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Nov 2008 09:00:42 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Wed, 12 Nov 2008 16:59:30 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7FFEB234C286 for ; Wed, 12 Nov 2008 08:59:44 -0800 (PST) Message-ID: <2141987589.1226509184523.JavaMail.jira@brutus> Date: Wed, 12 Nov 2008 08:59:44 -0800 (PST) From: "Christian Semrau (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (COLLECTIONS-307) SetUniqueList.subList().contains() method checks against full parent list, not sublist range MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 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.