Re: Internal Compiler Failure when trying to upgrade a GWT 2.7.0 application to 2.8.1

2022-06-27 Thread Jens


> [INFO] Caused by: java.lang.NoSuchMethodError: 
> org.eclipse.jdt.internal.compiler.lookup.MethodBinding.isDefaultMethod()Z
>

 This line indicates that you have some version of JDT / ECJ on your 
classpath during GWT compilation that is incompatible with the one that GWT 
compiler uses. JDT is embedded in gwt-dev.jar so it is possible that some 
other dependency brings in a different version.


-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/d4aa5d86-ac93-40cf-bca6-36c0fb55076bn%40googlegroups.com.


Internal Compiler Failure when trying to upgrade a GWT 2.7.0 application to 2.8.1

2022-06-27 Thread mmo
I am trying to upgrade an application still using GWT 2.7.0 to at least 
2.8.1 (and if possible higher, i.e. 2.9.0 or ideally 2.10.0).

After raising the GWT version from 2.7.0 to 2.8.1 the compilation of the UI 
maven module now always ends in an internal compiler failure: 

...
[INFO] --- gwt-maven-plugin:2.8.1:compile (default) @ zhstregisterjp-web ---
[INFO] Compiling module 
ch.zh.ksta.zhstregisterjp.ZHStRegisterJPWebDevelopment
[INFO] [ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Error constructing 
Java AST
[INFO]  at 
com.google.gwt.dev.jjs.impl.GwtAstBuilder.translateException(GwtAstBuilder.java:3944)
[INFO]  at 
com.google.gwt.dev.jjs.impl.GwtAstBuilder.getInternalCompilerException(GwtAstBuilder.java:4351)
[INFO]  at 
com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMembers(GwtAstBuilder.java:4043)
[INFO]  at 
com.google.gwt.dev.jjs.impl.GwtAstBuilder.processImpl(GwtAstBuilder.java:3883)
[INFO]  at 
com.google.gwt.dev.jjs.impl.GwtAstBuilder.process(GwtAstBuilder.java:3918)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater$UnitProcessorImpl.process(CompilationStateBuilder.java:129)
[INFO]  at 
com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:384)
[INFO]  at 
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)
[INFO]  at 
com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:1092)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:325)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:548)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:479)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:465)
[INFO]  at 
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:423)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:222)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:202)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:143)
[INFO]  at com.google.gwt.dev.Compiler.compile(Compiler.java:204)
[INFO]  at com.google.gwt.dev.Compiler.compile(Compiler.java:155)
[INFO]  at com.google.gwt.dev.Compiler.compile(Compiler.java:144)
[INFO]  at com.google.gwt.dev.Compiler$1.run(Compiler.java:118)
[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:125)
[INFO] Caused by: java.lang.NoSuchMethodError: 
org.eclipse.jdt.internal.compiler.lookup.MethodBinding.isDefaultMethod()Z
[INFO]  at 
com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMethod(GwtAstBuilder.java:4138)
[INFO]  at 
com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMembers(GwtAstBuilder.java:4033)
[INFO]  ... 21 more
[INFO][ERROR] at ClickEvent.java(23): public class ClickEvent extends 
MouseEvent
[INFO]   org.eclipse.jdt.internal.compiler.ast.TypeDeclaration
---


ANY idea or hint anyone, how to analyze this? Or how to figure out what 
could be causing this and where to start searching???

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/b76c64eb-ea0e-479e-a7c4-8f4db3f389d5n%40googlegroups.com.