jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r501572 - /jackrabbit/branches/1.2/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java
Date Tue, 30 Jan 2007 21:30:31 GMT
Author: jukka
Date: Tue Jan 30 13:30:30 2007
New Revision: 501572

URL: http://svn.apache.org/viewvc?view=rev&rev=501572
Log:
1.2: Merged revision 497395 (JCR-711)

Modified:
    jackrabbit/branches/1.2/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java

Modified: jackrabbit/branches/1.2/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.2/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java?view=diff&rev=501572&r1=501571&r2=501572
==============================================================================
--- jackrabbit/branches/1.2/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java
(original)
+++ jackrabbit/branches/1.2/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java
Tue Jan 30 13:30:30 2007
@@ -29,6 +29,7 @@
 import org.apache.jackrabbit.core.query.PropertyTypeRegistry;
 import org.apache.jackrabbit.core.query.QueryParser;
 import org.apache.jackrabbit.core.query.QueryRootNode;
+import org.apache.jackrabbit.core.query.AndQueryNode;
 import org.apache.jackrabbit.name.QName;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -207,6 +208,11 @@
             LocationStepQueryNode[] steps = root.getLocationNode().getPathSteps();
             final QName[] ntName = new QName[1];
             steps[steps.length - 1].acceptOperands(new DefaultQueryNodeVisitor() {
+
+                public Object visit(AndQueryNode node, Object data) {
+                    return node.acceptOperands(this, data);
+                }
+
                 public Object visit(NodeTypeQueryNode node, Object data) {
                     ntName[0] = node.getValue();
                     return data;



Mime
View raw message