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

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

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



Rate this page:

(0 users)Average rating

Document information


More support for:

z/OS family

Software version:

1.4.2

Reference #:

PM73938

Modified date:

2012-11-11

Translate my page

Machine Translation

Content navigation