Wednesday, January 25, 2017

Re: Geolocation problems

Apologies, I did not look very hard for the already reported issue.

null is required to indicate the browser does not support providing that specific value I believe, so I can understand why Double was used.

For now I've used my own overlay.


On Wednesday, January 25, 2017 at 2:36:15 PM UTC, Thomas Broyer wrote:

On Wednesday, January 25, 2017 at 11:56:20 AM UTC+1, Paul wrote:

Several methods return Double e.g.

public Double getSpeed()

The JavaScript object overlay that implements this method is...

public final native Double getSpeed() /*-{
      return this.speed || null;

However this.speed is a primitive double or null according to ...

So surely this is incorrect?

In GWT 2.7.0 and earlier, returning a JS Number as a java.lang.Double would be an error; but in GWT 2.8.0 java.lang.Double and double are interchangeable (same for java.lang.Boolean and boolean). This was actually reported 2 years ago:
It is however probably incorrect to turn a 0 value into a null yes.

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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment