During compilation of a GWT class I got some compiler exception. I filed a bug report for that here: http://code.google.com/p/google-web-toolkit/issues/detail?id=6623
Now I found how to make it compile anyway, by using "draftCompile". However, the generated JavaScript code doesn't work when executed.
The Java source files are available from the bug tracker, and the compiled project is here: http://clientssh1.rbg.informatik.tu-darmstadt.de:9000/war/Gwittest.html
The error is: (Chrome) "Uncaught TypeError: Cannot read property 'testpackage_shared_ship_Level_boards' of null". In Firefox its another error.
The code works in Dev Mode (from Eclipse).
How do I work around this error? Is it related to the compilation/optimization bug? How do I work around it? If it is a bug in and of itself, I should report this too, no?
Edit: the class in question is here: https://gist.github.com/1139147