Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 10178 invoked from network); 18 Jun 2009 06:38:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jun 2009 06:38:19 -0000 Received: (qmail 58542 invoked by uid 500); 18 Jun 2009 06:38:29 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 58432 invoked by uid 500); 18 Jun 2009 06:38:29 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 58418 invoked by uid 99); 18 Jun 2009 06:38:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2009 06:38:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2009 06:38:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6196F234C051 for ; Wed, 17 Jun 2009 23:38:07 -0700 (PDT) Message-ID: <608713647.1245307087398.JavaMail.jira@brutus> Date: Wed, 17 Jun 2009 23:38:07 -0700 (PDT) From: "Joerg Schaible (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (COLLECTIONS-330) ConcurrentModificationException using remove from the keySet the LRUMap In-Reply-To: <767941555.1245232447526.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COLLECTIONS-330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721091#action_12721091 ] Joerg Schaible commented on COLLECTIONS-330: -------------------------------------------- Thanks for heads-up. I "fixed" the invalid test, but it fails for me still. You did recognize that you have to rename the two tests with the TODO comment to get them running as unit test? > ConcurrentModificationException using remove from the keySet the LRUMap > ----------------------------------------------------------------------- > > Key: COLLECTIONS-330 > URL: https://issues.apache.org/jira/browse/COLLECTIONS-330 > 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.