I thought again about shared code using typed arrays.

We'll have the following:
- an interface shared.TypedArray
- an implementation client.TypedArray extends JSO implements
shared.TypedArray
- the client.TypedArray implements the methods defined in
shared.TypedArray using JSNI

Now let's think about shared code that operates on shared.TypedArray and
that code is called on the client.
How does the GWT compiler know to call the native method implemented in
client.TypedArray? I thought the whole JSO stuff is based on calling the
native methods implemented in the JSO type we have a reference for (we
get what we expect). As the compiler doesn't know that it's a JSO in the
shared code, I think that won't work.

Please correct me if I'm wrong.

http://gwt-code-reviews.appspot.com/1621803/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to