Wednesday, August 23, 2017

Re: ClassCastException in generics

I think Thomas means how do you get the ArrayBuffer.You said from the FileReader but

How FileReader is created at the first place? I mean Is the script that returns the FileReader loaded by
  1. your GWT script? If which option did you use ScriptInjector. If yes - did you setWindow?
  2. the host html page where your GWT script is loaded?
Documentation says:

File objects may be obtained from a FileList object returned as a result of a user selecting files using the <input> element, from a drag and drop operation's DataTransfer object, or from the mozGetAsFile() API on an HTMLCanvasElement.

What happens if you put package name as $wnd?
@JsType(isNative = true, namespace = "$wnd")

    Vassilis




On Tue, Aug 22, 2017 at 9:28 PM, Thomas Broyer <t.broyer@gmail.com> wrote:
Is the FileReader "instanceof $wnd.FileReader"? (Walk up the chain)

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
Vassilis Virvilis

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment