GWT Internal compiler error while using Calendar

I’m trying to compile a very simple calendar application. It works OK on hosted mode but when I run the compile script I get the following error:

(The text is too long. Check it out here: http://pastie.org/353921)

I have submitted the code that produces the error as an issue to the GWT team. You can find it here with instructions on how to reproduce the error: http://code.google.com/p/google-web-toolkit/issues/detail?id=3247

What might be going wrong?
Thanks!

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?

Are you able to run the code from the Calendar sample?

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.

Will let you know once I have more info.

Sanjiv

As noted in the GWT issue for this http://code.google.com/p/google-web-toolkit/issues/detail?id=3247, they have fixed this issue (on trunk and 1.6 release branch). I verified it and your above sample works fine now.

Sanjiv