Am Mittwoch, 14. Dezember 2016 17:53:03 UTC+1 schrieb Kirill Prazdnikov:
HiIt seems here you are trying to cast a native js object to java type.Sometimes GWT generates ClassCastException when I cast type "@JsType(isNative=true) A" to type B which is also native type. This is also kind of magic for me and I also have a strange workaround: write a native method that does the cast by "return arg".I wrote about that earlier:-Kirill
среда, 14 декабря 2016 г., 19:29:39 UTC+3 пользователь Norbert Bartels написал:
I'm migrating our GWT app to GWT 2.8 as a PoC because we like to use the SDM.
While testing the SDM I see some strange
ClassCastExceptionsin the console.
We use gxt 2 and changed some things to make it work with GWT > 2.5.1.
Here's the error message (stacktrace) of the the class cast exception:
java.lang.ClassCastException at Unknown.java_lang_Throwable_
The code that triggers this exception is this (http://grepcode.com/file/
repo1.maven.org/maven2/com.): extjs/gxt/2.3.1-gwt22/com/ extjs/gxt/ui/client/widget/ treegrid/TreeGridCellRenderer. java/#59
My temporary solution to fix this is:
Object obj = model.get(property); String.valueOf(obj);
I already found several places where the class cast exception occurs and where this fix solves the problem, but I'm afraid that there's something going wrong somewhere in GWT.
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 email@example.com.
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.