Nikita Timofeev created CAY-2464:
------------------------------------

             Summary: ClassCastException when returning PRUNED_NODE in 
expression transformer
                 Key: CAY-2464
                 URL: https://issues.apache.org/jira/browse/CAY-2464
             Project: Cayenne
          Issue Type: Bug
          Components: Core Library
    Affects Versions: 4.1.M2, 3.1.3, 4.0.RC2
            Reporter: Nikita Timofeev
            Assignee: Nikita Timofeev


This one is from [pull request|https://github.com/apache/cayenne/pull/303].
 Simple test case:
{code:java}
Expression exp = ExpressionFactory.exp("(false and true) and true");
Expression transformed = exp.transform(node -> {
    if(node instanceof ASTFalse) {
        return Expression.PRUNED_NODE;
    }
    return node;
});
assertEquals("true and true", transformed.toString());
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to