HelenBlack / lambdaj

Automatically exported from code.google.com/p/lambdaj
Apache License 2.0
0 stars 0 forks source link

append() method of LambdaCollection fails to update innerIterator causing forEach to fail #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The append method uses the addAll of the inner collection, but the addAll 
implementation does not update the innerIterator initially created in 
AbstractLambdaCollection.

This will cause the iterator to be out of sync in all subsequent calls using 
this iterator after the initial collection is modified causing a 
ConcurrentModificationException.

See attached patch with test and fix.

Original issue reported on code.google.com by bjerk...@gmail.com on 25 Aug 2010 at 1:32

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by mario.fu...@gmail.com on 25 Aug 2010 at 2:10

GoogleCodeExporter commented 8 years ago
Fixed in release 2.3.2

Original comment by mario.fu...@gmail.com on 28 Aug 2010 at 4:06