RFR(M): 8039407 : Regression test needed for JDK-8015396

David Chase david.r.chase at oracle.com
Tue Apr 8 19:56:49 UTC 2014


On 2014-04-08, at 2:35 PM, Igor Ignatyev <igor.ignatyev at oracle.com> wrote:

> Hi David,
> 
> Why do you need to use String.valueOf(D)?

I wanted the test to be robust.
And equality tests on "NaN" don't work (as mentioned already).

The original test also just printed results, so it seemed to me
that converting the double to a string and testing that string was
as close as I could get to the original -- there's the ever-so-slim
possibility that the bug was not in the calculation, but in the conversion.

David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20140408/68ba9dd2/signature.asc>


More information about the hotspot-compiler-dev mailing list