You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Steve Lawrence (Jira)" <ji...@apache.org> on 2022/10/18 12:22:00 UTC
[jira] [Updated] (DAFFODIL-2596) lengthKind property is not inherited for types with dfdlx:repType
[ https://issues.apache.org/jira/browse/DAFFODIL-2596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Lawrence updated DAFFODIL-2596:
-------------------------------------
Fix Version/s: (was: 3.4.0)
> lengthKind property is not inherited for types with dfdlx:repType
> -----------------------------------------------------------------
>
> Key: DAFFODIL-2596
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2596
> Project: Daffodil
> Issue Type: Bug
> Components: Front End
> Affects Versions: 3.2.0
> Reporter: Josh Adams
> Assignee: Josh Adams
> Priority: Major
>
> Ran into this while working on a customer schema
> Essentially if the default dfdl:lengthKind="implicit" and you attempt to use a dfdl:repType that involves uses string values for its enumeration, you will either get an error complaining that you cannot have an xs:string with lengthKind="implicit" without specifying a maxLength, OR for some unknown reason you can get a completely different usage error:
> org.apache.daffodil.exceptions.Abort: Usage error: v.>=(0)
> org.apache.daffodil.exceptions.Assert$.abort(Assert.scala:137)
> org.apache.daffodil.util.MaybeULong$.apply(MaybeULong.scala:54)
> org.apache.daffodil.util.MaybeJULong$.apply(MaybeULong.scala:84)
> org.apache.daffodil.processors.LengthInBitsEvBase.compute(EvElement.scala:144)
> at org.apache.daffodil.exceptions.Assert$.abort(Assert.scala:137)
> at org.apache.daffodil.util.MaybeULong$.apply(MaybeULong.scala:54)
> at org.apache.daffodil.util.MaybeJULong$.apply(MaybeULong.scala:84)
> at org.apache.daffodil.processors.LengthInBitsEvBase.compute(EvElement.scala:144)
> at org.apache.daffodil.processors.LengthInBitsEvBase.compute(EvElement.scala:118)
> at org.apache.daffodil.processors.Evaluatable.evaluate(Evaluatable.scala:281)
> at org.apache.daffodil.processors.Evaluatable.compileTimeEvaluate(Evaluatable.scala:212)
> at org.apache.daffodil.processors.Evaluatable.compile(Evaluatable.scala:317)
> at org.apache.daffodil.processors.Evaluatable.compile(Evaluatable.scala:326)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)