[英]Maven Intellij IDEA failing to gwt compile classes
我在使用GWT编译的Intellij IDEA Maven中遇到了这个奇怪的问题。 我已经在台式机上进行了此设置并可以工作,但是现在我撤消了更改并将项目加载到另一台计算机上,我遇到了以下问题:
...snip... \EmailServiceImpl.java C:\Users\Szabolcs\Java\Workspace\ims-project\ims\src\main\java\nz\co\doltech\ims\shared\domains\InjuryType.java -s C:\Users\Szabolcs\Java\Workspace\ims-project\ims\target\generated-sources\annotations -g -nowarn -target 1.7 -source 1.7 -encoding UTF-8
[INFO] Compiling 370 source files to C:\Users\Szabolcs\Java\Workspace\ims-project\ims\target\ims-1.0-SNAPSHOT\WEB-INF\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \Users\Szabolcs\Java\Workspace\ims-project\ims\src\main\java\nz\co\doltech\ims\client\application\investigation\InvestigationPresenter.java:[126,26] error: cannot find symbol
[ERROR] \Users\Szabolcs\Java\Workspace\ims-project\ims\src\main\java\nz\co\doltech\ims\client\application\investigation\InvestigationPresenter.java:[126,40] error: cannot find symbol
[ERROR] \Users\Szabolcs\Java\Workspace\ims-project\ims\src\main\java\nz\co\doltech\ims\client\application\investigation\InvestigationPresenter.java:[123,84] error: type argument MyView is not within bounds of type-variable T
[ERROR] \Users\Szabolcs\Java\Workspace\ims-project\ims\src\main\java\nz\co\doltech\ims\client\application\investigation\InvestigationPresenter.java:[204,11] error: cannot find symbol
[ERROR] \Users\Szabolcs\Java\Workspace\ims-project\ims\src\main\java\nz\co\doltech\ims\client\application\investigation\InvestigationModule.java:[10,2] error: no suitable method found for bindPresenter(Class<InvestigationPresenter>,Class<MyView>,Class<InvestigationView>,Class<MyProxy>)
[INFO] 5 errors
更大的日志跟踪视图: 此处
将错误文件归档到:
123 public class InvestigationPresenter extends IncidentPresenter<InvestigationPresenter.MyView,
InvestigationPresenter.MyProxy> implements InvestigationViewUiHandlers, ChangeSectionHandler {
126 interface MyView extends IncidentView, HasUiHandlers<InvestigationViewUiHandlers> {
void setupValidation(Map<Integer, SectionTuple> sections);
void flush();
void limited(LimitType type);
... snip ...
InvestigationModule.java
public class InvestigationModule extends AbstractPresenterModule {
@Override
protected void configure() {
bind(InvestigationView.Resources.class).asEagerSingleton();
10 bindPresenter(InvestigationPresenter.class, InvestigationPresenter.MyView.class,
InvestigationView.class, InvestigationPresenter.MyProxy.class);
}
}
这是没有道理的。 IDE并未显示问题,因此不应该...使用相同的编译器设置,相同的JDK和相同的字节码版本等。它如何在我的另一台机器上工作,但现在在这台基本上没有设置的机器上无法工作相同?
我试过了:
感谢您提供有关此问题的任何帮助。
尽管原因仍然是未知的,但问题与以下事实有关:JAVA编译器很难正确地确定继承链,而Eclipse和IntelliJ编译器对您可以编译的内容则更为慷慨。
从InvestmentPresenter提取MyView将解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.