GWT Native Method Warning

2012-11-19 Thread Patrax
I'm doing a project in GWT to deploy in AppEngine and I'm getting a warning in Eclipse saying: JavaScript parsing: Expected an identifier in JSNI reference Any ideas on what's causing this? public void callFacebookAPI(String url) { JsonpRequestBuilder requestBuilder = new

Re: GWT Native Method Warning

2012-11-19 Thread Matthew Dempsky
On Sun, Nov 18, 2012 at 11:16 AM, Patrax pje...@gmail.com wrote: public void callFacebookAPI(String url) { This is an instance method. FB.login(function(response) { [FYI, you should probably wrap your callback in $entry(). See

Re: GWT Native Method Warning

2012-11-19 Thread Colin Alworth
In addition to matthew's comment, you are invoking a method that apparently has two arguments callFacebookAPI(Ljava/lang/String;Ljava/lang/String;) with only one: (facebookUrl) Delete one of the two Ljava/lang/String; parts on the method invocation so you actually point to your method