Am 24.06.2015 11:09, schrieb werickson:
[...]
Annotation processors that modify classes, such as Lombok, are taking
advantage of private APIs.  Because of this, there is the very real
possibility that Lombok will break with future Java releases.

I am pretty sure they had a lot of fun with all the javac changes in java8

Here's an
article that describes the trick that Lombok uses to modify classes:
http://notatube.blogspot.com/2010/11/project-lombok-trick-explained.html

yes, I know that one... actually used that trick myself already. Only me not knowing enough about javac internals prevented me from going further.

Annotation processors that modify classes are the exception, rather than the
rule.  You should expect most annotation processors only generate new code,
not modify existing code.

What about Dagger2?

bye blackdrag

--
Jochen "blackdrag" Theodorou
blog: http://blackdragsview.blogspot.com/

Reply via email to