I have an @AnnotationCollector annotation (TimeBasedUuidId) that adds a bunch of JPA annotations to a field. I wanted to write an AST transformation that would add the field along with the annotation to my class, so I just added a FieldNode with an annotation for TimeBasedUuidId. This works using groovy-eclipse-compiler from Maven, but in Eclipse itself, the compilation fails with
class com.artsquare.studio.domain.annotation.TimeBasedUuidId is not an annotation in @com.artsquare.studio.domain.annotation.TimeBasedUuidId
I have no problems adding fields whose annotations aren't collectors. I'm using 2.9.2.
Update: Looks like I had some stale Maven setup. Same problem from the command line, which indicates it might be an upstream issue.
I have an
@AnnotationCollectorannotation (TimeBasedUuidId) that adds a bunch of JPA annotations to a field. I wanted to write an AST transformation that would add the field along with the annotation to my class, so I just added aFieldNodewith an annotation forTimeBasedUuidId.This works usingin Eclipse itself, the compilation fails withgroovy-eclipse-compilerfrom Maven, butI have no problems adding fields whose annotations aren't collectors. I'm using 2.9.2.
Update: Looks like I had some stale Maven setup. Same problem from the command line, which indicates it might be an upstream issue.