You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Steve Lawrence (JIRA)" <ji...@apache.org> on 2019/03/19 13:08:00 UTC

[jira] [Resolved] (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 ]

Steve Lawrence resolved DAFFODIL-2099.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.0

Fixed in commit 9719bb400977e336e0a1a5a115a58a4af198bc6d

> 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
>             Fix For: 2.4.0
>
>
> 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)