JDK 9 RFR of 8059175: Zero BigDecimal with negative scale prints leading zeroes in String.format

joe darcy joe.darcy at oracle.com
Wed Jan 7 02:44:12 UTC 2015


Catching up on reviews, the change looks fine.

Cheers,

-Joe

On 12/23/2014 3:27 PM, Brian Burkhalter wrote:
> Please review at your convenience.
>
> Issue:	https://bugs.openjdk.java.net/browse/JDK-8059175
> Patch:	http://cr.openjdk.java.net/~bpb/8059175/webrev.00/
>
> In java.util.Formatter.BigDecimalLayout.layout() trailing zeroes are erroneously appended when the unscaled value of the BigDecimal is zero and the scale is negative. Some other minor changes are included to make the logic in the method clearer.
>
> Thanks,
>
> Brian




More information about the core-libs-dev mailing list