Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AST transformations can't add nodes with AnnotationCollectors #150

Closed
chrylis opened this issue Nov 9, 2015 · 0 comments
Closed

AST transformations can't add nodes with AnnotationCollectors #150

chrylis opened this issue Nov 9, 2015 · 0 comments

Comments

@chrylis
Copy link

chrylis commented Nov 9, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants