Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
3.0
-
None
-
all
-
New, Patch Available
Description
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); }