You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2008/03/13 17:16:24 UTC

[jira] Commented: (DIRSERVER-1134) ClassCastException in ExpressionEnumerator

    [ https://issues.apache.org/jira/browse/DIRSERVER-1134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578359#action_12578359 ] 

Emmanuel Lecharny commented on DIRSERVER-1134:
----------------------------------------------

Good catch !!!

As we currently don't support Approximate searches, this kind of search default to a simple equality search. The problem is that the ApproximateNode does not inherit from the EqualityNode. This must be changed.

> ClassCastException in ExpressionEnumerator
> ------------------------------------------
>
>                 Key: DIRSERVER-1134
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1134
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.5.1, 1.0.2
>            Reporter: Kiran Ayyagari
>             Fix For: 1.5.2, 1.0.3
>
>
> In ExpressionEnumerator.java the below code will fail if executed with a ClassCastException
>  if ( node instanceof ApproximateNode )
>      {
>        list = enumEquality( ( EqualityNode ) node ); // line 135 This cast will always throw a ClassCastException
>      } 

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