commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <scolebou...@btopenworld.com>
Subject [collections] Race condition
Date Tue, 02 Dec 2003 00:46:00 GMT
Sadly there seems to be a race condition in one of the new classes/tests

There was 1 failure:
1) testMapIteratorSet(TestFlat3Map.bulkTestMapIterator.testMapIteratorSet)
junit.framework.AssertionFailedError: Map must not contain old value
expected:<false> but was:<true>
 at
org.apache.commons.collections.iterators.AbstractTestMapIterator.testMapIter
atorSet(AbstractTestMapIterator.java:267)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at org.apache.commons.collections.map.TestAll.main(TestAll.java:80)

When I run with Eclipse debugger the error is in TestFlat3Map. When I run
without the debugger, the error is in TestHashedMap. And occaisionaly it
works.

I'm going to sleep, so I'll disable the test for the moment in case Gump
runs. If anyone wants to play they're welcome - I'm guessing its the test
thats bad.

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