How do you call your exported 'foo' methods from javascript to pass a
java collection?
Are you aware that Collections are not supported by gwt-exporter [1]?
In your case this should work:
@Export
public void foo(int[] arr, String a){
logger.log(Level.FINEST, "called with 2 params");
foo(arr, a, "otherstring");
}
@Export
public void foo(int[] arr, String a, String b){
logger.log(Level.FINEST, "called with 3 params");
}
myInstance.foo([1,2], "a");
myInstance.foo([1,2], "a", "b");
[1]
http://code.google.com/p/gwt-exporter/wiki/GettingStarted#Exportable_types
> --
> Has recibido este mensaje porque estás suscrito al grupo "gwtexporter" de
> Grupos de Google.
> Para anular la suscripción a este grupo y dejar de recibir sus correos
> electrónicos, envía un correo electrónico a
>
gwtexporter...@googlegroups.com.
> Para obtener más opciones, visita
https://groups.google.com/groups/opt_out.
>
>