Jan*_*Jan
7
java
gwt
editor
gwt2
我试图将原始类型"int"的字段绑定到编辑器.我的编辑器扩展了ValueBox<Integer>
,因为Java中的泛型只能使用对象类型.
当我编译我的应用程序时,我收到以下错误:
00:00:18,915 [ERROR]在使用getter表达式""唤醒路径"cadastralDivisionCode"时发现意外类型int
更改getter和setter以使用Integer对象,可以解决问题.有没有办法在GWT 2.1编辑器框架中使用原始类型?