commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
Subject [jira] Commented: (COLLECTIONS-330) ConcurrentModificationException using remove from the keySet the LRUMap
Date Thu, 18 Jun 2009 13:21:07 GMT


Sebb commented on COLLECTIONS-330:

Also, the tests both still fail even if the iter.remove() call is commented out, but they
then fail on the

If the map.get() call is commented out, leaving just iter.remove(), the test works fine in
single-threaded and multi-threaded mode.

Looks like the get() is not maintaining expectedModCount.

> ConcurrentModificationException using remove from the keySet the LRUMap
> -----------------------------------------------------------------------
>                 Key: COLLECTIONS-330
>                 URL:
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Collection
>    Affects Versions: 3.3
>            Reporter: Joerg Schaible
> Even if the access to a LRUMap is synced and the remove method of the iterator is used
that has been returned from the keySet of the LRUMap, it is possible to get a ConcurrentModificationException.
This does not happen for remove of the iterators returned by the entrySet or values of the
LRUMap. See currently not executed unit test in TestLRUMap (marked as TODO for COLLECTION-3).

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message