You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2010/10/29 15:14:26 UTC
[jira] Reopened: (LUCENE-2277) QueryNodeImpl throws
ConcurrentModificationException on add(List)
[ https://issues.apache.org/jira/browse/LUCENE-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir reopened LUCENE-2277:
---------------------------------
reopening for possible 2.9.4/3.0.3 backport.
> QueryNodeImpl throws ConcurrentModificationException on add(List<QueryNode>)
> ----------------------------------------------------------------------------
>
> 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
> Assignee: Robert Muir
> Priority: Critical
> Fix For: 2.9.4, 3.0.3, 3.1, 4.0
>
> Attachments: addChildren.patch, LUCENE-2277.patch
>
>
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org