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

时间:2011-03-03 16:24:01

标签: java gwt restlet gwt2

使用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)

2 个答案:

答案 0 :(得分:0)

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

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

特别是在Restlet的情况下,你应该坚持使用GWT 2.1,直到Restlet 2.1 M3被发布为“next week”。

答案 1 :(得分: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/