Thursday, May 12, 2016

jsinterop: converting a jre collection to a jsArray

Hi again,

I am trying to convert a jre collection or build a jsArray with a isNative=true type.

Unfortunately this is not possible because JsArray requires JavascriptObject which is invcompatible (complie time error) with native classes.

Any ideas?

I looked on deep dive jsinterop from Ray Cromwell and it says that there is not a clean way for jsinterop1 to align collections. Ok I get that - but there must be a way even if not the nicest/cleanest one.

Otherwise looks like I have to create my own @jsinteroped MyJsArray which looks wrong.

--
Vassilis Virvilis

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment