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

Steve Lawrence commented on DAFFODIL-2596:
------------------------------------------

Should this ticket remain open? I thought that commit only fixed the Mike's 
most recent comment, but not other issues related to lengthKind?

> 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
>            Priority: Major
>             Fix For: 3.5.0
>
>
> 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)

Reply via email to