Thank's for pointing that out. So i switched to the new annotations in jsinterop.annotations and activated the new mode with -jsInteropMode JS_RC.
The cast still doesn't work though :( Instead of a java.lang.ClassCastException, I now get a Uncaught [object Object] during the cast. Once again, everything works if I use the concrete type and remove the cast. POM: https://github.com/bitwerk/jspoc/blob/master/pom.xml Javascript: https://github.com/bitwerk/jspoc/blob/master/src/main/webapp/jspoc.html GWT: https://github.com/bitwerk/jspoc/tree/master/src/main/java/dk/bitwerk/client /Brian Den mandag den 26. oktober 2015 kl. 12.29.21 UTC+1 skrev Jens: > > > I am using GWT 2.8.0-SNAPSHOT, but the new annotations does not work for >> me. >> >> I tried using @JsType(namespace = "acme", name = "MyJavaScriptObject"), >> as described in the new version of the JsInterop document, but apparently >> the namespace and name attributes are not there in the jar file. >> Same thing with the @JsExport and @JsNamespace, I currently have to use >> them or things stop working. >> > > The new annotations have a different package: jsinterop.annotations. Also > @JsExport does not exist anymore in the new JsInterop version, you just > use @JsType. > > To activate the new annotations you also have to change the JsInterop mode > via -jsInteropMode JS_RC > > > -- J. > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
