You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Brandon Sloane (JIRA)" <ji...@apache.org> on 2019/03/18 15:46:00 UTC
[jira] [Assigned] (DAFFODIL-2099) Original errors being surpressed
in doParse loop
[ https://issues.apache.org/jira/browse/DAFFODIL-2099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brandon Sloane reassigned DAFFODIL-2099:
----------------------------------------
Assignee: Brandon Sloane
> 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
> Assignee: 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)