I was wondering what the biggest incompatibility you've seen between java (the JRE and the language) and GWT generated javascript (running in web mode)? The only one I've seen is this:
Which alerts 'no nfe' in gwt web mode, but when compiled into a java class emits 'nfe' (I haven't tested it in hosted mode).
There are very few differences, and actually none come to mind. Part of the allure of GWT is that you can forget sometimes that you are compiling code to JavaScript.
With the specific case you mentioned, I would probably say that this is a bug, not an inconsistency. The GWT compiled code should throw an exception, just like the Java code.
If you go over to the GWT site, there is a link for bug tracking. It might be worth adding.
Thanks Robert. The good folks at google must have done a killer job on GWT if you spent that much time writing a book and couldn't think of any inconsistencies.
Originally posted by Daniel Moore: Hi folks, I was wondering what the biggest incompatibility you've seen between java (the JRE and the language) and GWT generated javascript (running in web mode)?
There is a small list of issues that might cause confusion between Java and JavaScript here: