> https://github.com/gwtproject/gwt/issues/9356 suggests that
>    value.@Boolean::booleanValue() is rejected but 
> value@Boolean::booleanValue()() works?
>

Yes but they are two different things. The first syntax returns the JS 
function itself (method reference) while the second one executes the 
function and returns its return value. So you have changed the code from 
"Does the function exist on 'value'" to "execute the function (=> and throw 
a JS error if it does not exist)". 

Method references are forbidden for Double, Boolean and String. Method 
calls are allowed.

-- J. 

-- 
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.

Reply via email to