commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack, Paul" <pj...@sfaf.org>
Subject RE: [PATCH][Collections] Full primitive list unit tests
Date Tue, 25 Jun 2002 15:15:52 GMT
> they are serializable -- we just need to store a serialized 
> form in CVS so that the tests can verify serialized 
> compatibility.  As for the fail-fast stuff, it was failing 
> some tests I believe.  I'd have to take a look again though...

The primitive lists aren't fail-fast.  The add and remove 
operations never alter the AbstractList.modCount field, 
which is used by the AbstractList iterator implementations
to detect concurrent modifications.

Basically every add and remove operation should include a
modCount++ statement.

-Paul


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


Mime
View raw message