Sorry, patch attached this time. On Tue, Sep 30, 2008 at 6:00 PM, Eric Ayers <[EMAIL PROTECTED]> wrote:
> (This issue was previously discussed in a thread with the subject: RR: > Hosted mode accepts 'undefined' or 'null' for booleanprimitive type) > Hello Bob, > > I would like for you to review the attached patch which addresses 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. > > This patch changes JSIO to generate code such that the 3rd argument would > be written as !!arg2 > > M > maps/src/com/google/gwt/maps/jsio/rebind/PrimitiveFragmentGenerator.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 -~----------~----~----~----~------~----~------~--~---
galgwt-maps-map-boolean-undef-to-false-r859.patch
Description: Binary data