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

DPath: Parse Error - Cannot convert 'NaN' from double to long

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 1.0.0
    • s15
    • None
    • None

      NOTE: This issue is specifically with the "serialization-with-dpath2 branch", not the current 0.15.0 branch

      Test (not_11) is attempting to test this scenario for the function fn:not():
      "If $arg is a value of any numeric type...fn:not returns true if the operand value is NaN..."

      I define a sequence, where the first element is a float (num), and the second is a boolean, which is set via inputValueCalc to the result of fn:not(num). The input for the test is the textStandardNaNRep. This test works against the current 0.15.0 branch, but when I test it against remotes/origin/serialization-with-dpath2, I get the following error:

      [error] Test edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressions.test_not_11 failed: edu.illinois.ncsa.daffodil.processors.ParseError: Parse Error: Expression evaluation failed due to: Cannot convert 'NaN' from Double type to Long (No other details are available.)..

      Please see test not_11 in the following file:
      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_functions/Functions.tdml

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

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 25 minutes
                  25m