directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (DIRSHARED-24) Filter comparison with and node does not work
Date Sun, 22 Feb 2009 01:22:02 GMT

     [ https://issues.apache.org/jira/browse/DIRSHARED-24?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Lecharny reassigned DIRSHARED-24:
------------------------------------------

    Assignee: Emmanuel Lecharny

> Filter comparison with and node does not work
> ---------------------------------------------
>
>                 Key: DIRSHARED-24
>                 URL: https://issues.apache.org/jira/browse/DIRSHARED-24
>             Project: Directory Shared
>          Issue Type: Bug
>    Affects Versions: 0.9.11, 0.9.12, 0.9.13
>            Reporter: Steve hammond
>            Assignee: Emmanuel Lecharny
>            Priority: Critical
>         Attachments: andPatch.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> at the bottom of andNode.java the equals function is comparing children(i) to children(i)
and not children(i) to otherChildren(i)
>         for ( int i = 0; i < children.size(); i++ )
>         {
>             ExprNode child = children.get( i );
>             ExprNode otherChild = children.get( i );
>             
>             if ( !child.equals( otherChild ) )
>             {
>                 return false;
>             }
>         }
> Simple change needs to be 
>         for ( int i = 0; i < children.size(); i++ )
>         {
>             ExprNode child = children.get( i );
>             ExprNode otherChild = otherChildren.get( i );
>             
>             if ( !child.equals( otherChild ) )
>             {
>                 return false;
>             }
>         }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message