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

[jira] [Commented] (DAFFODIL-2191) Warning about varying alignment is sporadic.

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

Michael Beckerle commented on DAFFODIL-2191:
--------------------------------------------

Perhaps this is due to the confusing isOptional and isArray predicates inside Daffodil. This error check is probably calling isOptional thinking it means "might not be present", when the definition of isOptional is actually "has 0 or 1 occurrence". I think isVariableOccurrences is likely the right test here.

> Warning about varying alignment is sporadic. 
> ---------------------------------------------
>
>                 Key: DAFFODIL-2191
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2191
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Diagnostics, Middle &quot;End&quot;
>    Affects Versions: 2.4.0
>            Reporter: Michael Beckerle
>            Priority: Major
>             Fix For: 2.5.0
>
>         Attachments: binSchema.dfdl.xsd, compErr.tdml
>
>
> Diagnostic warning about alignment is issued for attached schema and TDML, but if you remove the maxOccurs="unbounded" from Section 3, then there is no warning.
> So we get the warning for dfdl:occursCountKind="implicit" when maxOccurs="unbounded" but not when bounded.
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)