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/29 11:43:00 UTC
[jira] [Closed] (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 closed CAY-2464.
--------------------------------
Resolution: Fixed
> 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
> Reporter: Nikita Timofeev
> Assignee: Nikita Timofeev
> Priority: Major
> Fix For: 4.0.1, 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)