correct signature for a JSNI call?

1 view
Skip to first unread message

Jeff Chimene

unread,
Jul 18, 2008, 9:50:05 PM7/18/08
to Google-We...@googlegroups.com
Hi,

Would some kind soul please correct the parameter type signature for the call to arrayConvert?

-30-

package com.example.client;

import com.google.gwt.core.client.EntryPoint;

public class Checksheet implements EntryPoint {

   public Checksheet ChecksheetParts[] = null;

   public Checksheet() {}
   
   private static JavaScriptObject arrayConvert(Checksheet[] array) {
       return null;
   }
   
   private native void insert() /*-{
   var ChecksheetParts = this.@com.example.client.Checksheet::arrayConvert([com/example/client/Checksheet;)(ChecksheetParts);
   }-*/;

    public void onModuleLoad() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}

Jeff Chimene

unread,
Jul 18, 2008, 10:00:55 PM7/18/08
to Google-We...@googlegroups.com
Less than a minute after posting, I stumbled upon the Java compiler's error which turned out to be equivalent to a certain spelling corrector message: "Did you mean to spell 'Mississippi?'"

That answered the question. Never mind.

-30-

Reinier Zwitserloot

unread,
Jul 19, 2008, 12:00:28 AM7/19/08
to Google Web Toolkit
By the way, the 'this@' is a 'bug' (though the compiler correctly
ignores it), as arrayConvert is static.

On Jul 19, 4:00 am, "Jeff Chimene" <jchim...@gmail.com> wrote:
> Less than a minute after posting, I stumbled upon the Java compiler's error
> which turned out to be equivalent to a certain spelling corrector message:
> "Did you mean to spell 'Mississippi?'"
>
> That answered the question. Never mind.
>
> -30-
>
> On Fri, Jul 18, 2008 at 6:50 PM, Jeff Chimene <jchim...@gmail.com> wrote:
> > Hi,
>
> > Would some kind soul please correct the parameter type signature for the
> > call to arrayConvert?
>
> > -30-
>
> > package com.example.client;
>
> > import com.google.gwt.core.client.EntryPoint;
>
> > public class Checksheet implements EntryPoint {
>
> >    public Checksheet ChecksheetParts[] = null;
>
> >    public Checksheet() {}
>
> >    private static JavaScriptObject arrayConvert(Checksheet[] array) {
> >        return null;
> >    }
>
> >    private native void insert() /*-{
> >    *var ChecksheetParts = th...@com.example.client.Checksheet
> > ::arrayConvert([com/example/client/Checksheet;)(ChecksheetParts);*
Reply all
Reply to author
Forward
0 new messages