Re: A class cast exception when upgrading from GWT 2.8.0 to 2.8.2 ?
Yesss, the above solution worked. Luckily it was the only construction I had, I only had to rewrite this one. Sorry, there will not be any upgrade to 3.0 -- 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+unsubscr...@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.
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+unsubscr...@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.
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? So it would be: SimpleZtoeslagAppConfig extends JavaScriptObject implements ZtoeslagAppConfig { } *private* SimpleZtoeslagAppConfig getZtoeslagConfig() { *return* (SimpleZtoeslagAppConfig) UtilsJsni.*getProperty*(getJson(), *getMiscValues*().zorgtoeslag()); } -- 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+unsubscr...@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.
Re: A class cast exception when upgrading from GWT 2.8.0 to 2.8.2 ?
Thanks for the inside Jens, I think that could be it, I will test it. Ed -- 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+unsubscr...@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.
Re: A class cast exception when upgrading from GWT 2.8.0 to 2.8.2 ?
Hmm as you are using intersection types this might be related to https://github.com/gwtproject/gwt/commit/1ce1c710c7d3d7bffc246c7f013009b670be44a4 which has been committed between 2.8.0 and 2.8.2. So it could very well be that now there is a cast check inserted by GWT because you use an intersection type as return type of your getter. -- 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+unsubscr...@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.
Re: A class cast exception when upgrading from GWT 2.8.0 to 2.8.2 ?
Anybody any idea please? -- 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+unsubscr...@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.