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

NumberFormatException when Unbounded element in unordered sequence

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: deferred
    • Component/s: Front End, General
    • Labels:
      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                jchab Jessie Chab
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    Tasks