[
https://issues.apache.org/jira/browse/DAFFODIL-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dave Thompson closed DAFFODIL-2041.
-----------------------------------
No action required.
> Parse error on if statements in expressions
> -------------------------------------------
>
> Key: DAFFODIL-2041
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2041
> Project: Daffodil
> Issue Type: Bug
> Affects Versions: 2.1.0
> Reporter: Brandon Sloane
> Priority: Minor
> Fix For: 2.3.0
>
> Attachments: test.dfdl.xsd
>
>
> In complex dfdl expressions, if statements do not get processed correctly
> without extraneus parenthesis.
> The following expressions produces an error:
> \{ 1 + if(fn:true()) then 1 else 2 }
> [error] Schema Definition Error: Unable to parse expression. Message: `}'
> expected but `t' found
> Next: then 1 else 2 }.
> In contrast, the following works as expected:
> \{ 1 + (if(fn:true()) then 1 else 2) }
>
> Attached is a basic schema demonstrating the issue.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)