Mike Beckerle created DAFFODIL-2646:
---------------------------------------

             Summary: Choice diagnostics too verbose
                 Key: DAFFODIL-2646
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2646
             Project: Daffodil
          Issue Type: Bug
          Components: Back End, Diagnostics
    Affects Versions: 3.2.1
            Reporter: Mike Beckerle


When a choice has been discriminated, the diagnostics if the discriminated 
branch fails should NOT include 
{code:java}
Parse Error: All choice alternatives failed {code}
Because a discriminator isolates things to one branch. 

A choice could backtrack through a few alternatives, eventually hit a 
discriminator, and then fail. There may be branches that were never attempted 
(after the branch where the discriminator occurred) hence, it is simply wrong 
to say all alternatives failed, as there were potentially alternatives that 
were never tried. 

But really, once a discriminator has been evaluated to true, then the choice 
should not be creating any diagnostics about the choice itself, or at worst it 
should be saying "Choice Discriminated Branch Failure" only about the one 
branch. 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to