Re: JsInterop and Java collections?

2016-06-05 Thread Jens
> When you think about it, other Java APIs (jaxb, jpa, Jackson) do go the > extra mile to accommodate Java collections Well kind of bad comparison right? These Java APIs either serialize/deserialize based on a defined principle or stay in Java land anyways. > , and the example above look

Re: JsInterop and Java collections?

2016-06-05 Thread Hristo Stoyanov
Thanks Jen, Let me try to explain the issue better: In your example, JsArray must have a bunch of native methods mapped to the native JavaScript Array API. None of these methods bring much value to the Jav

Re: JsInterop and Java collections?

2016-06-05 Thread Vassilis Virvilis
As somebody that has also written js wrappers for arrays in jsinterop: While I am not an expert I believe that what you are looking for simply it is not possible. The other software cases you mention are copying values around (or serializing as already said). But with @jsinterop a collection must