It seems to me that you're missing the fact that classes are the
breeding ground for objects (at least in Java, anyway). Saying "I'm
not after classes--all I want are objects" is a bit like saying "I'm
not after seeds--all I want are flowers".
You _might_ be able to get what you want with Ray Cromwell's Exporter.
I forget where you can find it, but it's available on the web
somewhere. It might be hosted as a Google Code project. You could
probably find it by searching this list's history for posts by Ray
Cromwell that mention "Exporter". The Exporter basically allows you
to mark certain classes and interfaces as "exportable". Exported
interfaces get wrapped in a bunch of JSNI goo to make it easy for a
traditional Javascript script to call into the compiled GWT output.
> I thought it was possible to turn off the mangling by setting compiler
> flags. I've also read about JSNI in this context. Wouldn't one or both
> of these help?
JSNI can help, and the Exporter automates the drudgery for you.
Turning off name mangling doesn't help, it just makes it possible for
a human to read the compiler's output and make associations between
the compiled code and the Java source that it came from.
Ian