GWT从2.1升级到2.4 [英] GWT upgrade from 2.1 to 2.4
问题描述
从GWT 2.1编译到2.4时,显示以下错误:
while compiling from GWT 2.1 to 2.4, the following error is shown:
找到了com.google.gwt.core.ext.typeinfo.JClassType接口,但期望使用类
Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
请为我提供解决此问题的方法.
so kindly provide me with the solution to this issue.
推荐答案
GWT 2.2中存在二进制向后不兼容(其中com.google.gwt.core.ext.typeinfo.JClassType
等已从类更改为接口).您必须使用针对GWT 2.2 SDK或更高版本编译的第三方依赖项来更新您的第三方依赖项;对于您自己的库,或者如果第三方库已被遗弃,则必须重新编译(javac
).
There's a binary backwards-incompatibility in GWT 2.2 (where com.google.gwt.core.ext.typeinfo.JClassType
et al. were changed from classes to interfaces). You have to update your third-party dependencies with ones that have been compiled against the GWT 2.2 SDK or a newer version; for your own library or if the third-party lib has been somewhat abandoned, you'll have to recompile it (javac
).
GIN 提供了其1.5版的2种版本:一种与GWT兼容2.1.1和更早的版本,以及一个与2.2兼容的版本(gwt-1.5.zip
下载中有两个不同的JAR).
GIN for example provides 2 builds of its 1.5 release: one compatible with GWT 2.1.1 and older, and one compatible with 2.2 onwards (there are two distinct JARs in the gwt-1.5.zip
download).
这篇关于GWT从2.1升级到2.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!