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

NumberFormatException when Unbounded element in unordered sequence

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5.0
    • Front End, General
    • None

    Description

      If I create an unordered sequence of optional elements, where maxOccurs = "unbounded", I get the following error:

      [error] Test edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressions.test_count_05b failed: edu.illinois.ncsa.daffodil.exceptions.Abort: java.lang.NumberFormatException: For input string: "unbounded"
      [error] at edu.illinois.ncsa.daffodil.dsom.oolag.OOLAG$OOLAGValue.edu$illinois$ncsa$daffodil$dsom$oolag$OOLAG$OOLAGValue$$oolagTryCatch(OOLAG.scala:485)
      [error] at edu.illinois.ncsa.daffodil.dsom.oolag.OOLAG$OOLAGValue$$anonfun$4.apply(OOLAG.scala:568)
      [error] at edu.illinois.ncsa.daffodil.dsom.oolag.OOLAG$OOLAGHost.circularityDetector(OOLAG.scala:265)
      [error] at edu.illinois.ncsa.daffodil.dsom.oolag.OOLAG$OOLAGValue.valueAsAny(OOLAG.scala:552)
      [error] at edu.illinois.ncsa.daffodil.dsom.oolag.OOLAG$LV.value(OOLAG.scala:650)
      [error] at edu.illinois.ncsa.daffodil.grammar.Prod.gram$lzycompute(Grammar.scala:262)

      See test count_05b in the following files:
      /resources/edu/illinois/ncsa/daffodil/section23/dfdl_functions/Functions.tdml
      /scala-debug/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressionsDebug.scala
      /scala/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressions.scala

      Attachments

        Activity

          People

            dfthompson Dave Thompson
            daffodil-jchab Jessie Chab
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: