You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/09/22 13:04:52 UTC

DO NOT REPLY [Bug 26038] - IteratorChain - if first iterator empty, doesn't care about next ones.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=26038>.
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