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)
4

2 回答 2

0

GWT 2.2 向后兼容的方式破坏了许多第三方库。在这种情况下,看起来您正在使用 Restlet for GWT。

在这些情况下,您唯一的直接补救措施是检查库的源代码并自己进行构建。由于这通常很复杂或不切实际,下一个最佳选择是等待第三方发布其库的 GWT-2.2 兼容版本。

特别是在 Restlet 的情况下,您可能应该坚持使用 GWT 2.1,直到“下周”发布 Restlet 2.1 M3 。

于 2011-03-03T17:12:57.513 回答
0

Restlet 2.1 M3 刚刚发布,包括对 GWT 2.2 的支持。感谢您的耐心 http://blog.noelios.com/2011/03/31/restlet-framework-2-1-m3-and-2-0-6-released/

于 2011-03-31T17:29:21.013 回答