directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r964261 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParser.java
Date Wed, 14 Jul 2010 23:41:42 GMT
Author: elecharny
Date: Wed Jul 14 23:41:41 2010
New Revision: 964261

URL: http://svn.apache.org/viewvc?rev=964261&view=rev
Log:
Deal with NotFilter correctly

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParser.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParser.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParser.java?rev=964261&r1=964260&r2=964261&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParser.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParser.java
Wed Jul 14 23:41:41 2010
@@ -668,6 +668,12 @@ public class FilterParser
         {
             // Add the child to the node children
             branchNode.addNode( child );
+            
+            if ( branchNode instanceof NotNode )
+            {
+                return node;
+            }
+            
             nbChildren++;
         }
         else if ( node instanceof AndNode )



Mime
View raw message