[
https://issues.apache.org/jira/browse/DAFFODIL-2099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16795106#comment-16795106
]
Brandon Sloane commented on DAFFODIL-2099:
------------------------------------------
I don't seem to have permissions to assign this bug, but I plan on handling it
myself.
> Original errors being surpressed in doParse loop
> ------------------------------------------------
>
> Key: DAFFODIL-2099
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2099
> Project: Daffodil
> Issue Type: Bug
> Components: Back End
> Reporter: Brandon Sloane
> Priority: Major
>
> The Runtime.scala doParse function looks roughly like:
> {{try{}}
> try{
> //parse logic
> } finally{
> state.verifyFinalState(wasThrow)
> }
> } catch{
> //actually handle exceptions
> }
>
> verifyFinalState disables some checks when there was an excpetion, but some
> get run regardless. In the case where verifyFinalState fails, it will throw a
> new exception, thereby surpressing the original excpetion; even though it is
> likely that the original exception was the actual cause of the problem.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)