[jira] Updated: (LUCENE-2284) MatchAllDocsQueryNode toString() creates invalid XML-Tag

2010-02-24 Thread Frank Wesemann (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Frank Wesemann updated LUCENE-2284:
---

Attachment: LUCENE-2284.patch

this patch returns a valid xml Element.

> MatchAllDocsQueryNode toString() creates invalid XML-Tag
> 
>
> Key: LUCENE-2284
> URL: https://issues.apache.org/jira/browse/LUCENE-2284
> Project: Lucene - Java
>  Issue Type: Bug
>  Components: contrib/*
> Environment: all
>Reporter: Frank Wesemann
> Attachments: LUCENE-2284.patch
>
>
> MatchAllDocsQueryNode.toString() returns "", 
> which is inavlid XML should read ".

-- 
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org



[jira] Created: (LUCENE-2284) MatchAllDocsQueryNode toString() creates invalid XML-Tag

2010-02-24 Thread Frank Wesemann (JIRA)
MatchAllDocsQueryNode toString() creates invalid XML-Tag


 Key: LUCENE-2284
 URL: https://issues.apache.org/jira/browse/LUCENE-2284
 Project: Lucene - Java
  Issue Type: Bug
  Components: contrib/*
 Environment: all
Reporter: Frank Wesemann


MatchAllDocsQueryNode.toString() returns "", 
which is inavlid XML should read ".


-- 
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org



[jira] Updated: (LUCENE-2277) QueryNodeImpl throws ConcurrentModificationException on add(List)

2010-02-22 Thread Frank Wesemann (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Frank Wesemann updated LUCENE-2277:
---

Attachment: addChildren.patch

iterates over the supplied List of QueryNodes.

> 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
> Attachments: addChildren.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: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org



[jira] Created: (LUCENE-2277) QueryNodeImpl throws ConcurrentModificationException on add(List)

2010-02-22 Thread Frank Wesemann (JIRA)
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org