[
https://issues.apache.org/jira/browse/DAFFODIL-1519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16581081#comment-16581081
]
Steve Lawrence commented on DAFFODIL-1519:
------------------------------------------
Related to this issue, the default of 1024 is likely to small for many
practical applications. This number should be bumped up to something much
larger (maybe even MaxInt?) and the user can tune it down if needed.
> occursCount that is greater than maxOccursBounds causes PE/UE rather than SDE
> -----------------------------------------------------------------------------
>
> Key: DAFFODIL-1519
> URL: https://issues.apache.org/jira/browse/DAFFODIL-1519
> Project: Daffodil
> Issue Type: Bug
> Components: Back End, Diagnostics, Usability
> Reporter: Steve Lawrence
> Priority: Major
> Fix For: 2.2.0
>
>
> Currently, if you have an expression for occursCount, and that expression
> results in a value greater than maxOccursBounds (which defaults to 1024),
> then we currently throw a PE/UE. When parsing, this can result in
> backtracking for a non-obvious reason. The fact that maxOccursBounds was
> exceeded may not even be reported.
> Instead, it seems like this should instead be a SDE so that the error is
> reported immediately and the user can either modify a tunable to increase the
> maxOccursBOunds, or rework the schema to not need such a large array.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)