groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From werickson <werick...@gmail.com>
Subject Re: java parser usage in Groovy
Date Wed, 24 Jun 2015 09:09:36 GMT
It's also worth noting, that Java Annotation Processors are only meant to
generate new code, and aren't supposed to modify existing classes.

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.  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

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.



--
View this message in context: http://groovy.329449.n5.nabble.com/java-parser-usage-in-Groovy-tp5725492p5725522.html
Sent from the Groovy Dev mailing list archive at Nabble.com.

Mime
View raw message