[
https://issues.apache.org/jira/browse/DAFFODIL-2895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dave Thompson closed DAFFODIL-2895.
-----------------------------------
Verified the specified commit (commit:
b2aa98d9648c69c9a4e518b3826ef25f550ec786) is included in the latest pull from
the daffodil repository.
Verified, via review, changes identified in the commit comments were
implemented.
Verified the affected daffodil subproject sbt test suites executed
successfully, including the added test.
Verified the nightly test suite executes successfully with no unexpected
failures.
> Runtime SDE in ElementCombinator parser with validation causes "Expression
> Evaluation Error: Element does not have a value"
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: DAFFODIL-2895
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2895
> Project: Daffodil
> Issue Type: Bug
> Components: Back End
> Affects Versions: 3.7.0
> Reporter: Steve Lawrence
> Priority: Major
> Fix For: 3.8.0
>
>
> The finally block for the ElementCombinator parser calls parseEnd which does
> restriction validation. But if an exception was thrown then we do not have a
> value to validate, which creates an "Element does not have a value" exception
> and hides the underlying exception. We should only perform validation if the
> parser actually succeeds, so this logic needs to be moved out of the finally
> block.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)