GWT: How to avoiding calls to dynamicCast and canCastUnsafe in generated JavaScript code?

后端 未结 5 781
醉梦人生
醉梦人生 2021-01-12 12:32

I\'m writing some special purpose data structures in Java, intended for use in the browser, (compiled to JavaScript with GWT).

I\'m trying to match the performance o

5条回答
  •  失恋的感觉
    2021-01-12 13:22

    It's definitely a compiler problem: I have the problem on the following line:

    final DefaultIconedSuggestBox> fieldValueWidget = getCategoryWidget().getFieldValueWidget();
    

    I don't really know how I can workaround it: this line happens in a moment I'm changing from a module to another (it is maybe related to the code splitter issue: even though I'm not using code split: I'm just loading another page with another module)

提交回复
热议问题