Re: DigitList bug in recent patch

2013-03-27 Thread Frank Ding
Hi Olivier Thanks for your detailed clarification which really helps. Best regards, Frank On 3/28/2013 12:09 AM, Olivier Lagneau wrote: Hi Frank, We discovered some time ago a long-standing bug in the DigitList.java class (see bug 7131459 ).

Re: DigitList bug in recent patch

2013-03-27 Thread Olivier Lagneau
Hi Franck, Below is a variation of your program that shows the closest bynary representation of the v value you provide: -- import java.math.RoundingMode; import java.math.BigDecimal; public class FrankDing { public static void main(String[] args) { java.

Re: DigitList bug in recent patch

2013-03-27 Thread Olivier Lagneau
Hi Frank, We discovered some time ago a long-standing bug in the DigitList.java class (see bug 7131459 ). we have fixed it and this is now in the latest JDK8 builds The fact is that decimal value 78.5 cannot be represented exactly in a binar

Re: DigitList bug in recent patch

2013-03-27 Thread Brian Burkhalter
Interesting. This week I was just running some regression tests against the updated patch for 7032154 (not yet posted) and the only failures I found were in the HALF_* cases in TieRoundingTest. I'll check out what you reported while looking into it. Thanks, Brian On Mar 27, 2013, at 12:50 AM,

Re: DigitList bug in recent patch

2013-03-27 Thread Frank Ding
Current JDK gives the output of "78.0001". Best regards, Frank On 3/27/2013 3:48 PM, Frank Ding wrote: Hi guys, We noticed there is a recent change (patch @ http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/bc1f16f5566f ) that changed the behavior of the following program. import java.math.Rou

DigitList bug in recent patch

2013-03-27 Thread Frank Ding
Hi guys, We noticed there is a recent change (patch @ http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/bc1f16f5566f ) that changed the behavior of the following program. import java.math.RoundingMode; public class TestNumberFormat { public static void main(String[] args) { java.tex