[ 
https://issues.apache.org/jira/browse/DAFFODIL-2801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17698027#comment-17698027
 ] 

Mike Beckerle commented on DAFFODIL-2801:
-----------------------------------------

This issue is quite serious.

occursCountKind parsed and occursCountKind implicit should behave identically 
in these tests, but they do not. 

Schemas are forced to use occursCountKind 'parsed', which converts all optional 
elements into potential arrays. 

This can lead to multiple quite subtle issues, poor backtracking behavior, etc. 

 

> Array with Choice parses incorrectly when occursCountKind is implicit
> ---------------------------------------------------------------------
>
>                 Key: DAFFODIL-2801
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2801
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End
>    Affects Versions: 3.4.0
>            Reporter: Olabusayo Kilo
>            Priority: Major
>             Fix For: 3.5.0
>
>         Attachments: TestImplicitvParsed.scala, implicitvparsed.tdml
>
>
> When an inner array with an infix separator (contained in a sequence with a 
> prefix separator) has a choice within it and is occurs count kind implicit, 
> it's unable to correctly backtrack and find the separator and fails with a 
> separator not found. The exact same scenario with the OCK set to parsed, 
> works as expected. Attached are the tdml files.
> Tested with 3.4.0 and 3.5.0 snapshot.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to