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

totalDigits valiation broken when totalDigits >= 10

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • Back End

    Description

      The checkTotalDigits logic works by creating a BigInteger that is 10^totalDigits, and then comparing the infoset unscaledValue to that number.

      Unfortunately, we then get the intValue of that number, which means if 10^totalDigits is ever greater than an int value, Daffodil will throw an AritchmeticException. This will happen when totalDigits >= 10.

      I think this is also broken if the dataValue is negative.

      Attachments

        Activity

          People

            Unassigned Unassigned
            slawrence Steve Lawrence
            Votes:
            1 Vote for this issue
            Watchers:
            4 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 - 40m
                40m