PM73938: JAVA.MATH.BIGDECIMAL'S ROUND_FLOOR AND ROUND_CEILING ROUNDING MO DES RETURNS INCORRECT VALUES.

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Error Message: BigDecimal.ROUND_FLOOR and
    BigDecimal.ROUND_CEILING returns incorrect value
    .
    Stack Trace: N/A
    .
    

Local fix

  • Use com.ibm.math.BigDecimal instead of java.math.BigDecimal
    

Problem summary

  • BigDecimal.ROUND_CEILING and BigDecimal.ROUND_FLOOR modes are
    not working properly  in calculations when the divisor is
    negative as the JDK is not taking care of the signs.
    

Problem conclusion

  • This defect will be fixed in:
    1.4.2 SR13 FP14
    .
    The JDK has been updated to take care of the signs in all the
    cases of ROUND_CEILING and ROUND_FLOOR.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM73938

  • 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

  • Submitted date

    2012-09-28

  • Closed date

    2012-10-15

  • Last modified date

    2012-11-11

  • 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

    JAVA(1.3/1.4 CO

  • Fixed component ID

    5648C9800

Applicable component levels

  • R42A PSY

       UP

  • R42L PSY

       UP

  • R42W PSY

       UP



Document information


More support for:

Runtimes for Java Technology
General

Software version:

1.4.2

Reference #:

PM73938

Modified date:

2012-11-11

Translate my page

Content navigation