jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r158602 - incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/observation/EventFilter.java
Date Tue, 22 Mar 2005 13:39:49 GMT
Author: mreutegg
Date: Tue Mar 22 05:39:48 2005
New Revision: 158602

URL: http://svn.apache.org/viewcvs?view=rev&rev=158602
Log:
JCR-79: EventFilter misses Events for same Nodetype

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/observation/EventFilter.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/observation/EventFilter.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/observation/EventFilter.java?view=diff&r1=158601&r2=158602
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/observation/EventFilter.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/observation/EventFilter.java
Tue Mar 22 05:39:48 2005
@@ -88,7 +88,7 @@
      * @param itemMgr    the <code>ItemManager</code> of the <code>session</code>.
      * @param session    the <code>Session</code> that registered the {@link
      *                   javax.jcr.observation.EventListener}.
-     * @param eventTypes only allow specified {@link javax.jcr.observation.EventType}s.
+     * @param eventTypes only allow specified {@link javax.jcr.observation.Event} types.
      * @param path       only allow {@link javax.jcr.Item} with
      *                   <code>path</code>.
      * @param isDeep     if <code>true</code> also allow events for {@link
@@ -184,7 +184,7 @@
         if (nodeTypes != null) {
             boolean match = false;
             for (int i = 0; i < nodeTypes.length && !match; i++) {
-                match |= eventState.getNodeType().equals(nodeTypes[i]) || eventState.getNodeType().isDerivedFrom(nodeTypes[i].getQName());
+                match |= eventState.getNodeType().getQName().equals(nodeTypes[i].getQName())
|| eventState.getNodeType().isDerivedFrom(nodeTypes[i].getQName());
             }
             if (!match) {
                 return true;



Mime
View raw message