Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 69077 invoked from network); 22 Feb 2010 16:40:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Feb 2010 16:40:51 -0000 Received: (qmail 99869 invoked by uid 500); 22 Feb 2010 16:40:50 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 99817 invoked by uid 500); 22 Feb 2010 16:40:50 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 99809 invoked by uid 99); 22 Feb 2010 16:40:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Feb 2010 16:40:50 +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; Mon, 22 Feb 2010 16:40:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4D548234C1EF for ; Mon, 22 Feb 2010 08:40:28 -0800 (PST) Message-ID: <486386273.434321266856828315.JavaMail.jira@brutus.apache.org> Date: Mon, 22 Feb 2010 16:40:28 +0000 (UTC) From: "Frank Wesemann (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Created: (LUCENE-2277) QueryNodeImpl throws ConcurrentModificationException on add(List) 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 QueryNodeImpl throws ConcurrentModificationException on add(List) ---------------------------------------------------------------------------- Key: LUCENE-2277 URL: https://issues.apache.org/jira/browse/LUCENE-2277 Project: Lucene - Java Issue Type: Bug Components: contrib/* Affects Versions: 3.0 Environment: all Reporter: Frank Wesemann Priority: Critical on adding a List of children to a QueryNodeImplemention a ConcurrentModificationException is thrown. This is due to the fact that QueryNodeImpl instead of iteration over the supplied list, iterates over its internal clauses List. Patch: Index: QueryNodeImpl.java =================================================================== --- QueryNodeImpl.java (revision 911642) +++ QueryNodeImpl.java (working copy) @@ -74,7 +74,7 @@ .getLocalizedMessage(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED)); } - for (QueryNode child : getChildren()) { + for (QueryNode child : children) { add(child); } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org