commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38341] - IteratorChain skips over elements in iterator
Date Sat, 21 Jan 2006 02:05:03 GMT
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=38341>.
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=38341





------- Additional Comments From jo@jogiles.co.nz  2006-01-21 03:05 -------
(In reply to comment #3)
Hi there - I have tried - and I can't reproduce it outside of my environment.
But as I say, I now have two snapshots in my system, and I replace the method in
3.1 with the one from 2.1, it works exactly as expected.

However, doing so causes the current test cases to fail in two areas:
testFurstIteratorIsEmptyBug()
testEmptyChain()

My simple test case works under both 3.1 or 2.1.1 however. It is:
    public void testSize() {
    	// we know that the size is 6 elements, so lets ensure that is correct
    	Iterator iter = makeFullIterator();
    	int i = 0;
    	while (iter.hasNext()) {
    		++i;
    		iter.next();
    	}
    	
    	assertEquals(6, i);
    }

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message