I'm having a problem with the conversion of a JSON to a JNI overlay type. The java code has to following method:
long nr = 10l; public Long getNr() { return nr; } The JNI overlay type is: public final native Long getNr() /*-{ return this.nr; }-*/; I'm avoiding operating with the long primitive in the overlay type, as the compiler doesn't allow it. The official documentation says that this is inefficient but it should work. However, I'm getting: java.lang.IllegalArgumentException: Something other than a Java object was returned from JSNI method '@com.avaya.thunder.portal.client.shared.model.Customer::getNr1()': JS value of type int, expected java.lang.Object at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:271) I'm using GWT 2.2.0. Is it something I'm doing wrong? Should this work? Any help is appreciated. Thanks. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.