JDK 9 RFR of JDK-4943627 Deprecate rounding mode integer constants in BigDecimal and their uses

joe darcy joe.darcy at oracle.com
Sun May 1 03:24:20 UTC 2016


Hello,

Please review the changes to address

     JDK-4943627 Deprecate rounding mode integer constants in BigDecimal 
and their uses

     http://cr.openjdk.java.net/~darcy/4943627.0/

Since JDK 5, the java.math package has had a RoundMode enum to model and 
manage the various rounding modes used by methods in BigDecimal (and 
elsewhere). Those rounding modes enum constants were added in parallel 
to a set of integer constants in BigDecimal previously used to model 
rounding modes. For each BigDecimal method which took an int rounding 
mode constant, a sibling method was added to take a RoundMode object.

As the synopsis of the bug implies, the time has come to deprecate the 
legacy int rounding mode constants and the method taking those ints as 
arguments.

Thanks,

-Joe




More information about the core-libs-dev mailing list