JDK-6375303 : Review use of caching in BigDecimal
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.math
  • Affected Version: 6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2006-01-20
  • Updated: 2014-10-14
  • Resolved: 2014-04-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
9 b10Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
There have been a few bugs found in the caching fields used in BigDecimal; e.g. 6268365 and 6362557.  These have generally been in code introduced as part of JSR 13.  Other uses of such caching should be proactively reviewed and tests written to try to find any similar bugs.

This issue is covered by several existing regression tests in jdk/test/java/math/BigDecimal, notably Constructor.java.

Discussion threads: http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-March/025508.html and http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-April/026373.html.

EVALUATION A fine idea.