IBM Support

PK97049: BIGDECIMAL.ROUND_HALF_DOWN AND BIGDECIMAL.ROUND_HALF_EVEN RETURNS WRONG VALUE.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: BIGDECIMAL.ROUND_HALF_DOWN and
    BIGDECIMAL.ROUND_HALF_EVEN RETURNS WRONG VALUE.
    .
    Stack Trace: N/A
    .
    N/A
    

Local fix

  • N/A
    

Problem summary

  • ROUND HALF DOWN and ROUND HALF EVEN modes of BigDecimal.java not
    working properly.Two issues :-
    1) When the divisor is negative, its not taking care of the
    signs in all cases for ROUND HALF DOWN and ROUND HALF EVEN.
    2) Long overflow of an intermittent value used in computing
    ROUND_HALF_DOWN rounding or ROUND_HALF_EVEN rounding invoking
    ROUND_HALF_DOWN rounding.
    

Problem conclusion

  • This defect will be fixed in:
    1.4.2 SR13-FP3
    .
    The BigDecimal code has been updated to take care of signs in
    all cases for ROUND HALF DOWN and ROUND HALF EVEN.
    The BigDecimal code also has been updated to avoid overflow of
    an intermittent value used in computing ROUND_HALF_DOWN and
    ROUND_HALF_EVEN rounding invoking ROUND_HALF_DOWN rounding.
    .
    To obtain the fix:
    Install build 20091018 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK97049

  • Reported component name

    JAVA(1.3/1.4 CO

  • Reported component ID

    5648C9800

  • Reported release

    42A

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2009-09-24

  • Closed date

    2009-10-23

  • Last modified date

    2009-10-23

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

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

    PK97884

Fix information

  • Fixed component name

    JAVA(1.3/1.4 CO

  • Fixed component ID

    5648C9800

Applicable component levels

  • R42A PSN

       UP

  • R42L PSN

       UP

  • R42W PSN

       UP

  • R420 PSN

       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":"1.4.2","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 February 2022