Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2596

lengthKind property is not inherited for types with dfdlx:repType

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.5.0
    • Front End
    • None

    Description

      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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            jadams_tresys Josh Adams
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1.5h
                1.5h