[ 
https://issues.apache.org/jira/browse/DAFFODIL-2596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dave Thompson closed DAFFODIL-2596.
-----------------------------------

Verified the specified commits (commits 
f3ef3b9f5a5cddaf74c04d8d3026f8b99d72cbff, 
fef1284922b1e4b4002874001d7d292c3ee0b48b and 
7d3696a5c45f8ce2b94fd8c5f7d8783e5bd26734) are included in the latest pull from 
the daffodil repository.

Verified, via review, changes identified in the commit comments were 
implemented including test test_inherited_LengthKind added in commit 
7d3696a5c45f8ce2b94fd8c5f7d8783e5bd26734. Verified the 2 ineffective tests 
added in commit f3ef3b9f5a5cddaf74c04d8d3026f8b99d72cbff were removed. 

Verified the affected daffodil subproject sbt test suites now executed 
successfully. 

Verified the nightly test schemas compile and save successfully.

Verified the nightly test suite executes successfully.

> 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
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> 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