JDK-8282188 : Unused static field MathContext.DEFAULT_DIGITS
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.math
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-02-21
  • Updated: 2022-03-03
  • Resolved: 2022-02-24
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.
JDK 19
19 b12Fixed
Related Reports
Relates :  
Description
Field {{DEFAULT_DIGITS}} is unused in MathContext class.

    private static final int DEFAULT_DIGITS = 9;

https://github.com/openjdk/jdk/blob/cc7cf81256ed4d74493472017b1c4df20fa2208a/src/java.base/share/classes/java/math/MathContext.java#L61
It is unused at least since initial OpenJDK source upload.
Comments
Looking back into the older histories, the unused field was present since the initial integration of JSR 13 in JDK 5.0 (JDK-4984872).
24-02-2022

Changeset: 3cfffa4f Author: Andrey Turbanov <aturbanov@openjdk.org> Date: 2022-02-24 11:03:29 +0000 URL: https://git.openjdk.java.net/jdk/commit/3cfffa4f8e5a0fff7f232130125c549f992b533b
24-02-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7538 Date: 2022-02-18 19:07:15 +0000
21-02-2022