GWT 2.2 使用 Restlet 2.0 编译错误项目
使用 Google Plugin for Eclipse 编译我的项目时出现以下错误:
Computing all possible rebind results for 'org.restlet.example.gae.serialization.client.ContactResourceProxy'
Rebinding org.restlet.example.gae.serialization.client.ContactResourceProxy
Checking rule <generate-with class='org.restlet.rebind.ClientProxyGenerator'/>
Checking if all subconditions are true (<all>)
<when-assignable class='org.restlet.client.resource.ClientProxy'/>
Yes, the requested type was assignable
Yes: All subconditions were true
Rule was a match and will be used
Invoking generator org.restlet.rebind.ClientProxyGenerator
[ERROR] Errors in 'file:/D:/workspace/ehelios/org.restlet.example.gae.serialization/src/org/restlet/example/gae/serialization/client/Serialization.java'
[ERROR] Internal compiler error
java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
at org.restlet.rebind.ClientProxyGenerator.generate(ClientProxyGenerator.java:206)
at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
GWT 2.2 向后不兼容,这破坏了许多第三方库。在本例中,您似乎正在使用 Restlet for GWT。
在这些情况下,您唯一的直接补救措施是检查库的源代码并自行构建。由于这通常很复杂或不切实际,因此您的下一个最佳选择是等待第三方发布其库的 GWT-2.2 兼容版本。
特别是在 Restlet 的情况下,您可能应该坚持使用 GWT 2.1,直到 Restlet 2.1 M3 发布“下周”。
GWT 2.2 is backwards-incompatible in a way that has broken many third-party libraries. In this case, it looks like you're using Restlet for GWT.
In these cases, your only immediate remedy is to check out the source of the library and do a build yourself. As this is often complicated or impractical, your next best bet is to wait for the third party to release a GWT-2.2-compatible build of their library.
Specifically in the case of Restlet, you should probably stick with GWT 2.1 until Restlet 2.1 M3 is released "next week".
Restlet 2.1 M3 刚刚发布,包括对 GWT 2.2 的支持。感谢您的耐心等待
http: //blog.noelios.com/2011/03/31/restlet-framework-2-1-m3-and-2-0-6-released/
Restlet 2.1 M3 has just been released including support for GWT 2.2. Thanks for your patience
http://blog.noelios.com/2011/03/31/restlet-framework-2-1-m3-and-2-0-6-released/