FYI, the aforementioned patch was against the 1.5 branch.

On Fri, Sep 26, 2008 at 11:37 AM, Eric Ayers <[EMAIL PROTECTED]> wrote:

> John,
> I am running into a problem in hosted mode that is kind of tricky to work
> around.
>
> gwt-google-apis issue 180:
>
>   http://code.google.com/p/gwt-google-apis/issues/detail?id=180
>
> Basically, I have a JS API that is calling back into a method defined in
> Java:
>
>      [EMAIL PROTECTED]
> ::fromPixelToLatLng(Lcom/google/gwt/maps/client/geom/Point;IZ)(
>           arg0 || null,
>           arg1,
>           arg2);
>
> were 'arg2' is a boolean value.
>
> Sometimes, the Maps API is passing 'undefined' as the 3rd argument.
> I could fix this by writing all my argument passing in the form of:
>
> (arg2 == null ? false : arg2)
>
> but this would just be a workaround for hosted mode - web mode wouldn't
> care about the difference.  Besides that, it would bloat up the code.  So, I
> propose that in JsGlue that we just assume a null or undefined value is
> "false" when passed into java.
>
> M      user/test/com/google/gwt/dev/jjs/test/HostedTest.java
> M      dev/core/src/com/google/gwt/dev/shell/JsValueGlue.java
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USA
> http://code.google.com/webtoolkit/
>



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to