IBM Support

IV20326: BIGDECIMAL RETURNS WRONG SCALE IN MULTITHREAD ENVIRONMENT

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: BigDecimal.scale() returns wrong scale in some
    multithread environment.
    .
    Stack Trace:
    .
    

Local fix

Problem summary

  • BigDecimal.scale() set the flag first and then set the cache,
    this will cause it return wrong scale cache in multithread
    environment if a thread set the flag and system switch to other
    threads. At this time, the flag is set but the cache is not set,
    calling BigDecimal.scale() will get wrong scale.
    

Problem conclusion

  • This defect will be fixed in:
    7.0.0 SR1
    .
    Resort the order, set cache first and then set flag, this will
    avoid multithread problem
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV20326

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-04-27

  • Closed date

    2012-04-27

  • Last modified date

    2012-04-27

  • 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 CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
21 February 2022