我正在尝试根据给定的here示例运行GWT示例Gadgets应用程序。编译代码时,出现以下异常:

[ERROR] Unexpected internal compiler error
[INFO] java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
[INFO]  at com.google.gwt.gadgets.rebind.GadgetGenerator.validateType(GadgetGenerator.java:353)
[INFO]  at com.google.gwt.gadgets.rebind.GadgetGenerator.generate(GadgetGenerator.java:88)
[INFO]  at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
[INFO]  at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:676)
[INFO]  at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
[INFO]  at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
[INFO]  at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
[INFO]  at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)
[INFO]  at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
[INFO]  at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:644)
[INFO]  at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:34)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:271)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:223)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:139)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:167)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:132)
[INFO]  at com.google.gwt.dev.Compiler$1.run(Compiler.java:99)
[INFO]  at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
[INFO]  at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
[INFO]  at com.google.gwt.dev.Compiler.main(Compiler.java:106)


我的项目有以下主要依存关系:


gwt-user v2.6.1
gwt-gadgets v1.0.3


我正在使用Java 1.7

有人可以告诉我我想念的东西吗?

最佳答案

gwt-gadgets 1.0.3在GWT 2.6.1之前已经编译很长时间了。听起来GWT中可能会有一些重大更改,这些更改会影响到gwt-user的gwt-gadgets调用。

您应该能够获取gwt-gadgets的源并将其针对gwt-user的最新版本进行修复/编译,否则,您可能必须根据gwt-gadgets 1.0的发布日期使用更老的GWT。 .3(2009年5月!)

10-07 19:12
查看更多