commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <scolebou...@btopenworld.com>
Subject [collections] Backwards compatability 3.0 to 2.1
Date Sat, 13 Mar 2004 13:35:14 GMT
I took the time to run Collections 3.0 against the Collections 2.1 tests.
IT PASSED  ;-)


This is the full details of the 3 'failures':

ArrayIterator 'failure':
new ArrayIterator(Object,1,1) should throw an IllegalArgumentException
.collections.iterators.TestArrayIterator2.testIndexedArray(TestArrayIterator
2.java:203)
Reason - Collections 3.0 enhanced constructor to allow iteration over a zero
length array.
Backwards compatible unless caller relied on error.

UniqueFilterIterator 'failure':
java.lang.IllegalStateException
 java.util.AbstractList$Itr.remove(AbstractList.java:428)
.collections.iterators.FilterIterator.remove(FilterIterator.java:126)
.collections.iterators.TestUniqueFilterIterator.testRemove(TestUniqueFilterI
terator.java:153)
Reason - Collections 3.0 enhanced UniqueFilterIterator to allow remove()
Backwards compatible unless caller relied on error.

PredicatedMap 'failure':
Reason - Collections 3.0 fixed a bug whereby the toArray() method wasn't
protected by the predicate
Backwards compatible unless caller relied on bug.

Stephen


---------------------------------------------------------------------
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