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 10:07:00 UTC

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

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

Nikita Timofeev updated CAY-2464:
---------------------------------
    Fix Version/s: 4.1.M3

> 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: 3.1.3, 4.1.M2, 4.0.RC2
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>            Priority: Major
>             Fix For: 4.1.M3
>
>
> 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)