Re: Problem with GWT 2.8

2016-11-20 Thread Kevin Langille
https://github.com/gwtproject/gwt/issues/9463

-- 
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+unsubscr...@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.


Re: Problem with GWT 2.8

2016-11-20 Thread Kevin Langille
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+unsubscr...@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.


Re: Problem with GWT 2.8

2016-11-16 Thread Kevin Langille
Additional information

Running superdev mode from Intellij failed to show the error, only once our 
product was compiled is the error visible. I tested using log statements to 
show the values of the expressions.

I am testing on Windows 10, Chrome, JDK 1.8.0_111. I also reproduced the 
issue in Firefox, edge and IE11.

-- 
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+unsubscr...@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.


Re: Problem with GWT 2.8

2016-11-16 Thread Kevin Langille
Sorry I should have mentioned. I was unable to see it using superdev mode 
in Intellij. Only once compiled did the error show.

-- 
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+unsubscr...@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.


Problem with GWT 2.8

2016-11-15 Thread Kevin Langille
Hi everyone,

I have discovered a strange behavior in GWT 2.8. We were experiencing a bug 
in our code and I have boiled it down to one line in the client side code.

The following line returns false which is expected.

Math.abs(Double.NaN) < 0.0001

But applying not operator to the same line also returns false.

!(Math.abs(Double.NaN) < 0.0001)

We are able to avoid this situation with additional checks but its seems 
like a bug to me. Is anyone else able to confirm this issue? This was 
working as expected in 2.7.

Thanks,
Kevin

-- 
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+unsubscr...@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.


Possible issue in GWT 2.8

2016-11-15 Thread Kevin Langille
Hi everybody

I have discovered an issue in GWT 2.8.

Evaluating the statement the following statement results in false as 
expected.

Math.abs(Double.NaN) < 0.001 

But applying the not operation to the same line also returns false.

!(Math.abs(Double.NaN) < 0.001)


Is anyone else able to see this problem. We are able to work around it but 
it seems like a bug to me. This was working correctly in GWT 2.7.

Thanks,
Kevin Langille

-- 
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+unsubscr...@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.