Lombok is an annotation processor which are unfortunately not fully supported as of now.
In the case of Lombok it is even worth as it seem to require javac as the java compiler, since it down casts to internal non public types.
It's a total hack. Using non-public API. Presumptuous casting (knowing that an
annotation processor running in javac will get an instance of JavacAnnotationProcessor,
which is the internal implementation of AnnotationProcessor (an interface), which
so happens to have a couple of extra methods that are used to get at the live AST).
On eclipse, it's arguably worse (and yet more robust) - a java agent is used to inject
code into the eclipse grammar and parser class, which is of course entirely non-public
API and totally off limits.
“”"
Xtend runs the eclipse compiler (not javac) over any java sources such that Xtend can link against the signatures.
So while Xtend will probably support Java annotation processing in the near future (for compatibility reasons, active annotations are much better ;-))
I am not sure that the ‘hacks' done in Lombok will be supported.
Btw. the quote concludes with
“””
If you could do what lombok does with standard API, I would have done it that way, but
you can't.
“”"
With Xtend you can do all of it and much more - without hacks! :-)
Cheers,
Sven