groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: java parser usage in Groovy
Date Wed, 24 Jun 2015 10:49:31 GMT
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/


Mime
View raw message