GWT, Javadoc, and PMD are three tools that work directly on java
source that have a sizable community behind it, and don't really run
off of javac v1.6 internals (javadoc sort of does, but with many
caveats).
We were planning on solving all three of those via a 'delombok' tool -
which turns your java code into java code sans javac. You can then
modify your GWT build and test scripts to FIRST run the delombok tool,
copying all your sources over to a temporary directory, and then run
GWT on that temporary directory. delombok should be very very fast, so
even for tools that are continuous rebuild aware such as GWT, it's
just a matter of rerunning delombok. Because of GWT, we were planning
on having delombok offer a 'continuous' feature, where it'll keep
running continuously, watching for changes to any of the source files,
immediately delomboking them and saving them to the temp dir.
I don't think you'll have to mess with generators or, in fact,
anything GWT specific if delombok were to exist.
If you want to help out with this, that would be great! Javac has a
decent API that includes the ability to keep comments around, and
running toString on any AST note produces (not very readable, but
correct) java source code. You can check this out via the
@lombok.core.PrintAST(printContent=true) annotation, which will dump
the AST (post-lombok transformations) of the annotated item to
standard output.
It should simply be a matter of firing up javac, with a parameter to
explicitly load lombok.jar as an annotation processor, then turning
all relevant files into ASTs (which, due to having lombok.jar as
annotation processor, will automatically run lombok and thus de-lombok
everything), and then saving the toString() of each JCCompilationUnit
to a temp dir. You may also have to put in some extra effort to take
the annotations out (lombok doesn't remove its own annotations, though
all those annotations are source-level only) - though I think the GWT
compiler will just ignore them. Continuous mode is a bit more
problematic; real support for watching a directory tree for changes is
slated for java7. So, I guess you'd just run a thread that checks
every ~200 msec or so.
It's one of the plans for the next milestone release.