I'm using overlay types and I'm wondering if Java's type erasure is at
play.

What I have is a class that calls the following native code:

  private final native T evalJSONPayload(String jsonText) /*-{
     return $wnd.JSON.parse(jsonText);
  }-*/;

...where T extends JavaScriptObject and is being substituted thus:

JsArray<SomeClassExtendingJavaScriptObject>

This was working fine until I introduced
SomeOtherClassExtendingJavaScriptObject. I now appear to get casts to
SomeClassExtendingJavaScriptObject when I want
SomeOtherClassExtendingJavaScriptObject.

Any guidance appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to