IBM Support

RS00961: PROBLEMS WITH TESTS WITH BIGDECIMAL AND DECIMAL PRECISION, EQUALS UNORDERED TEST

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Several problems were found with tests on BigDecimal and with
    decimal precision:
    1. When testing a BigDecimal ending with 0 against a BigDecimal
    that is not ending with 0, the test fails. For example, when
    testing if 12.20 equals 12.2, false is returned whereas it
    should be true.
    2. Testing of BigDecimal attributes in objects inside
    collections or arrays does not work. The tests always return
    false.
    3. Rounding with decimal precision is erroneous for numbers
    (BigDecimal, Double, Float) lower than 1. For example, when
    rounding 0.009 with a decimal precision of 2, 0 is returned
    instead of 0.01.
    4. Decimal precision is not taken into account for tests on
    collections and arrays of complex objects.
    5. The Equals Unordered test is erroneous for collections and
    arrays. Sometimes an exception is raised when there are too many
    possible matching values between the expected values and the
    observed values.
    

Local fix

Problem summary

  • The comparizon code does not take into account all cases
    

Problem conclusion

  • implement the missing tests
    

Temporary fix

Comments

APAR Information

  • APAR number

    RS00961

  • Reported component name

    WS DECISION CTR

  • Reported component ID

    5725B6900

  • Reported release

    750

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-03-19

  • Closed date

    2012-03-30

  • Last modified date

    2012-03-30

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WDS FOR RULES

  • Fixed component ID

    5725B6903

Applicable component levels

  • R750 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 February 2022