Thank you very much for your help. This, indeed, solved the problem.
On Monday, August 12, 2013 7:55:57 PM UTC+2, Thomas Broyer wrote:
>
> You need to wrap your int into a java.lang.Integer using its valueOf or
> new(). JSNI doesn't do auto-boxing/unboxing.
--
You received this message because
I have declared the following class:
public class JsniTest {
private Map map;
public JsniTest(Map map) {
this.map = map;
}
public String get(T rowKey) {
return map.get(rowKey);
}
}
and the following "main" class:
public class TheApp implements EntryPoint {
I am getting this error:
java.lang.IllegalArgumentException: invoke arguments: JS value of type
number, expected java.lang.Object
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:65)
at
com.google.gwt.dev.shell