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.
