Urgent [9] RFR (S) : JDK-8039915 NumberFormat.format() does not consider required no. of fraction digits properly

olivier.lagneau at oracle.com olivier.lagneau at oracle.com
Fri Sep 19 10:31:18 UTC 2014


This is a code change we would like to integrate in next release of 
JDK8, since impacting some customer apps/deployments.
So it would be good to have it reviewed and backported to 8 soon.

Is there anyone having a bit of free time to review it ?

Best Regards,
Olivier Lagneau

On 11/09/2014 18:07, olivier.lagneau at oracle.com wrote:
> Could someone please review this code change ?
> Thanks in advance,
> Olivier Lagneau
> On 09/09/2014 22:44, olivier.lagneau at oracle.com wrote:
>> Please review this fix in for wrong rounding-mode mode behavior of 
>> NumberFormat.format(double) in HALF_UP case.
>> https://bugs.openjdk.java.net/browse/JDK-8039915
>> webrev: http://cr.openjdk.java.net/~olagneau/8039915/webrev.00 
>> <http://cr.openjdk.java.net/%7Eolagneau/8039915/webrev.00>
>> Bug came from a mix of a '5' and 'greater than 5' last digit, when 
>> this digit was the last one.
>> Fix consists in properly separating the two cases and cleanly test 
>> all possible cases (see JDK-8039915 comments) for the HALF_UP 
>> rounding-mode.
>> TieRoundingTest test has been extended with a few cases to check such 
>> cases (last digit at the rounding position and != '5')
>> testing: jtreg, jck8, jprt
>> Best regards,
>> Olivier Lagneau

More information about the core-libs-dev mailing list