2011-03-03 78 views
0

錯誤項目與谷歌插件編譯我的項目時,Eclipse的出現以下錯誤:GWT 2.2編譯的Restlet 2.0

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) 

回答

0

GWT 2.2的方式,打破了很多的第三方庫的向後兼容。在這種情況下,看起來您正在使用Restlet for GWT。

在這些情況下,您唯一的直接補救辦法是查看庫的來源並自行構建。由於這往往是複雜或不切實際的,你的下一個最好的選擇是等待第三方發佈一個GWT-2.2兼容版本的庫。

特別是在Restlet的情況下,您應該堅持使用GWT 2.1,直到Restlet 2.1 M3發佈「next week」。