Wednesday, December 19, 2018

Re: A class cast exception when upgrading from GWT 2.8.0 to 2.8.2 ?


BTW: what is the correct way to solve this?

Should I make a new class that extends both JavaScriptObject and implements ZtoeslagAppConfig?

Yes, and getPages() would be implemented using JSNI. That also means that AppPage should be a JSO (and might implement in interface). Alternatively you could rewrite your code to use JsInterop annotations and jsinterop-base library. Less boilerplate and you have to do it anyways if you plan to adopt GWT 3.0 in the future.

-- J.

--
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