jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r792162 - in /jackrabbit/trunk/jackrabbit-core/src: main/java/org/apache/jackrabbit/core/query/lucene/PredicateDerefQuery.java test/java/org/apache/jackrabbit/core/query/DerefTest.java
Date Wed, 08 Jul 2009 14:32:16 GMT
Author: mreutegg
Date: Wed Jul  8 14:32:16 2009
New Revision: 792162

URL: http://svn.apache.org/viewvc?rev=792162&view=rev
Log:
JCR-977: jcr:deref in xpath predicates

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/PredicateDerefQuery.java
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/DerefTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/PredicateDerefQuery.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/PredicateDerefQuery.java?rev=792162&r1=792161&r2=792162&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/PredicateDerefQuery.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/PredicateDerefQuery.java
Wed Jul  8 14:32:16 2009
@@ -140,7 +140,7 @@
         if (cQuery == subQuery) {
             return this;
         } else {
-            return new PredicateDerefQuery(subQuery, refProperty, nameTest, version, nsMappings);
+            return new PredicateDerefQuery(cQuery, refProperty, nameTest, version, nsMappings);
         }
     }
 

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/DerefTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/DerefTest.java?rev=792162&r1=792161&r2=792162&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/DerefTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/DerefTest.java
Wed Jul  8 14:32:16 2009
@@ -148,6 +148,11 @@
 //                new Node[]{testRootNode});
     }
 
+    public void testRewrite() throws RepositoryException {
+        executeXPathQuery("//*[people/jcr:deref(@worksfor, '*')/@foo=1]",
+                new Node[]{});
+    }
+
     /**
      * Checks if jcr:deref works when dereferencing into the version storage.
      */



Mime
View raw message