groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From werickson <>
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:

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:
Sent from the Groovy Dev mailing list archive at

View raw message