You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (JIRA)" <ji...@apache.org> on 2018/08/28 09:57:00 UTC

[jira] [Created] (CAY-2464) ClassCastException when returning PRUNED_NODE in expression transformer

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)