Sunday, November 20, 2016

Re: Problem with GWT 2.8

At least it is inconsistent with what the JVM would do, and appears to be different from what was seen in earlier versions of GWT. Can you file this at github.com/gwtproject/gwt/issues?

On Sunday, November 20, 2016 at 5:35:44 PM UTC-6, Kevin Langille wrote:
Thanks for the reply.

Compiling with pretty shows the issue.

if (!(Math.abs(x - y) < 0.0001))

gets turned into

if (Math.abs(x - y) >= 0.0001)

So when Math.abs(x - y) results in NaN the if always results in false.

In my mind this is a mistake because it doesn't accurately represent what is happening in Java. Is it enough to report it here or what should I do now?

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment