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

Unparsing with outputValueCalc and escapeScheme gives ArrayIndexOutOfBoundsException

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.0
    • 2.0.0
    • Unparsing
    • None

      Per Mike: Probably we are not copying the stack of escape schemes when we copy the state to suspend/resume unparser work. The array index out of bounds is an empty stack....

      Error:
      [error] Test edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestOutputValueCalcDebug.test_ovc_w_runtime_escape_char failed: java.lang.ArrayIndexOutOfBoundsException: -1
      [error] at scala.runtime.ScalaRunTime$.array_apply(ScalaRunTime.scala:73)
      [error] at edu.illinois.ncsa.daffodil.util.MStack.top(MStack.scala:263)

      See test test_ovc_w_runtime_escape_char in:
      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/outputValueCalc.tdml
      daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestOutputValueCalcDebug.scala

              efinnegan Elizabeth Finnegan
              efinnegan Elizabeth Finnegan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: