The code of the application is simple enough (without imports)
public void onModuleLoad() {
Calendar calendar = new Calendar();
calendar.draw();
}
If I comment the draw() line, then the application compiles OK, but obviously doesn’t produce the expected results. Any idea on how to avoid the compile-script to crash?
I was able to reproduce this. Your sample code runs fine in hosted mode but raises the error when trying to compile. Examining the line at which the GWT compiler is raising the error it appears really strange and likely a GWT issue. Additionally the Calendar samples in the Showcase compile / run fine so its something with the GWT compiler optimizer that seems to be not happy.
I’ll have to step into the GWT 1.5.3 compiler code and set a breakpoint to see what’s going on. The line number at which its complaining ( at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:542) ) doesn’t exist on the GWT mainline so its possible the issue might just disappear.