Brandon Sloane created DAFFODIL-2099:
----------------------------------------
Summary: 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
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)