GWT isn't Java. It just uses Java syntax so that Java books are useful, and
things like Eclipse work for it.
GWT code becomes JavaScript. It is never at any point Java.

A very simple compiler might recognise '"Window.alert(" and translate it to
'"document.alert("

If you whole program consists of Window.alert("Hello"); then it will be OK.
Anything else will fail.

The Google team have emulated many other commands and structures, but not
all of them: some are obscure and therefore not high enough up the priority
list, and some are impossible because, like threading, JS just doesn't do
that.

It would be an impossible task to emulate every possible class in every Java
library in existence. And would take for ever.

So if it ain't emulated, it ain't gonna work because the compiler will issue
a polite and rather technical version of 'WTF?'

And just throwing any old java program into the GWT compiler is, pretty
much, pointless.

But if you really want to help Google and emulate rg.eclipse.swt.widgets.Canvas
for GWT, then I'm sure they (and many others) will be eternally grateful for
at least a week or two :-)

If so, troll your little old lallies over to the very bona
http://groups.google.com/group/Google-Web-Toolkit-Contributors

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to