jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1151931 - /jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java
Date Thu, 28 Jul 2011 17:14:56 GMT
Author: mduerig
Date: Thu Jul 28 17:14:55 2011
New Revision: 1151931

URL: http://svn.apache.org/viewvc?rev=1151931&view=rev
Log:
spi2microkernel (WIP)
- correctly handle multi valued properties in observation 

Modified:
    jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java

Modified: jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java?rev=1151931&r1=1151930&r2=1151931&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java
Thu Jul 28 17:14:55 2011
@@ -346,6 +346,11 @@ public class SubscriptionImpl implements
                 addInnerItems(jsopTokenizer, eventTemplate, events, nodeId);
             }
             else {
+                if (jsopTokenizer.getTokenType() == '[') {
+                    // skip over array 
+                    while(jsopTokenizer.read() != ']');
+                }
+
                 Name name = path.getName();
                 if (!name.getLocalName().startsWith(":")) {
                     // skip internal property
@@ -438,7 +443,6 @@ public class SubscriptionImpl implements
                 throw new IllegalArgumentException("Not a long: " + jsonObject);
             }
         }
-
     }
 
     private static class EventTemplate {



Mime
View raw message