GWT 2.2 使用 Restlet 2.0 编译错误项目

发布于 2024-10-20 13:37:50 字数 1250 浏览 1 评论 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)

The following error appears when compiling my project with 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

灵芸 2024-10-27 13:37:50

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".

掐死时间 2024-10-27 13:37:50

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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文