Wednesday, August 23, 2017

Re: ClassCastException in generics

On Wednesday, August 23, 2017 at 2:31:20 PM UTC+2, Kirill Prazdnikov wrote:
public static native FileReader newFileReader() /*-{
return new $wnd.FileReader();

This will not help, fileReader.resultArrayBuffer()returns not a instance of $wnd.ArrayBuffer anyway.

Ouch! You're unfortunately right:
…at least in Chrome; because Firefox works as intended!
Please report the bug at (if no-one did already), and in the mean time, use name="Object", or possibly use a Java interface rather than a class.

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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment