internal compiler error with latest SNAPSHOT

114 views
Skip to first unread message

stuckagain

unread,
Jul 20, 2016, 8:23:01 AM7/20/16
to GWT Contributors

I was reviving a project that I was working on, which was using 2.8 snapshot.
It was working fine a few months ago but now the GWT compilation is failing.
No code was changed in the meantime, so my guess is that something changed in the GWT compiler that I need to know about ?

Any idea how I can track the actual reason why the compiler is crashing ?

[INFO] [ERROR] Unexpected internal compiler error

[INFO] java.lang.NullPointerException

[INFO] at com.google.gwt.dev.jjs.impl.JjsUtils.createForwardingMethod(JjsUtils.java:181)

[INFO] at com.google.gwt.dev.jjs.impl.ComputeOverridesAndImplementDefaultMethods.maybeAddSyntheticOverride(ComputeOverridesAndImplementDefaultMethods.java:276)

[INFO] at com.google.gwt.dev.jjs.impl.ComputeOverridesAndImplementDefaultMethods.computeOverrides(ComputeOverridesAndImplementDefaultMethods.java:150)

[INFO] at com.google.gwt.dev.jjs.impl.ComputeOverridesAndImplementDefaultMethods.exec(ComputeOverridesAndImplementDefaultMethods.java:78)

[INFO] at com.google.gwt.dev.jjs.impl.UnifyAst.computeOverrides(UnifyAst.java:1071)

[INFO] at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:900)

[INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1410)

[INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1222)

[INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:1140)

[INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:255)

[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:255)

[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)

Thomas Broyer

unread,
Jul 20, 2016, 9:42:53 AM7/20/16
to GWT Contributors, Roberto Lublinerman
+rluble

Could you set a breakpoint in JjsUtils trying to understand what causes the NPE? (what is null, which method is being processed, and what it looks like in your code)
Reading the code, I wonder if https://github.com/gwtproject/gwt/blob/master/dev/core/src/com/google/gwt/dev/jjs/impl/JjsUtils.java#L165 should read setJsOverlay() instead of isJsOverlay()

Roberto Lublinerman

unread,
Jul 20, 2016, 1:34:27 PM7/20/16
to Thomas Broyer, GWT Contributors
It should read setJsOverlay() but that would not fix the error. I think I understand why it might be happening but it would be nice if we have a small repro case.

Roberto Lublinerman

unread,
Jul 20, 2016, 2:24:02 PM7/20/16
to Thomas Broyer, GWT Contributors
Could you guys file an issue for this to keep track of it?

Roberto Lublinerman

unread,
Jul 20, 2016, 5:46:54 PM7/20/16
to Thomas Broyer, GWT Contributors
I filed a bug with a minimal repro at https://github.com/gwtproject/gwt/issues/9379 and uploaded a fix for review at https://gwt-review.googlesource.com/#/c/15450
Reply all
Reply to author
Forward
0 new messages