Hi Thomas,
 

> (Probably) because 'native' already has a defined meaning on native 
> classes.
>

Is there a strong reason for throwing error about JSNI method ?
 

> Can't you delegate to a helper class (with static methods) ?
>
> @JsOverlay public T get(int index) {
>   return ArrayHelper.get(this, index);
> }
>

Yes, this is how it works now, the only way. And I hope it is optimized.
Why not to introduce JsIndexer (like other compilers do) to make JsInterop 
full (avoid using JSNI at all) ?

(this looks a lot like java.lang.reflect.Array btw ;-) )
>
> You may also possibly cast your 'this' to an array? (just an untested idea)
>

This might work with GWT, but not with other Java->Js compilers. 
And since this is implementation details, this might be broken in the later 
versions.

Thanks 
  -Kirill

-- 
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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to