JDK-4943627 : Deprecate rounding mode integer constants in BigDecimal and their uses
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.math
  • Affected Version: 6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-10-24
  • Updated: 2017-05-16
  • Resolved: 2016-05-03
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 b118Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Jsr13 added a RoundingMode enum to group information about the variety of rounding modes supported by BigDecimal arithmetic operations.  This was to replace use of the "integer as enum" set of integer rounding mode constants in BigDecimal.  Therefore, use of the integer constants should be deprecated.

This issue should be reexamined in the context of a more general JDK deprecation policy.

If the old rounding mode constants do not meet the standards for deprecation, and there is no hope of the genesis of an annotation appropriate to the intent of denigration, then this issue should be resolved as "will not fix." Otherwise an issue enhancement request for an appropriate language feature should be filed with the current issue linked as a dependency. Another consideration would be to define the constants in BigDecimal in terms of the enumeration in RoundingMode instead of the converse as is presently the case.

EVALUATION The old integer rounding mode constants should not be used, but are not in and of themselves harmful; therefore, they do not meet the current standards for being deprecated. However, if a "denigration" facility is added, these constants should be considered.

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang

EVALUATION A fine idea. ###@###.### 2003-10-24