Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 67122 invoked from network); 22 Sep 2004 11:03:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Sep 2004 11:03:12 -0000 Received: (qmail 71952 invoked by uid 500); 22 Sep 2004 11:03:07 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 71858 invoked by uid 500); 22 Sep 2004 11:03:06 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 71837 invoked by uid 99); 22 Sep 2004 11:03:06 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=NO_REAL_NAME,UPPERCASE_25_50 X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 22 Sep 2004 04:03:02 -0700 Received: (qmail 19146 invoked by uid 50); 22 Sep 2004 11:04:52 -0000 Date: 22 Sep 2004 11:04:52 -0000 Message-ID: <20040922110452.19145.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 26038] - IteratorChain - if first iterator empty, doesn't care about next ones. X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=26038 IteratorChain - if first iterator empty, doesn't care about next ones. droutsis@ebs.gr changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED OS/Version|Linux |Windows NT/2K Resolution|FIXED | Version|2.1 Final |3.1 ------- Additional Comments From droutsis@ebs.gr 2004-09-22 11:04 ------- I think this still applies. Witness following test code: List emptyList = new ArrayList(); List nonEmptyList = new ArrayList(); nonEmptyList.add(new Object()); IteratorChain it = new IteratorChain(new Iterator[] {emptyList.iterator(), nonEmptyList.iterator()}); System.out.println("Next? " + it.hasNext()); // prints false System.out.println("Next again? " + it.hasNext()); // prints true Have tried this with both 3.0 and 3.1 releases. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org