Skip to content

AST transformations can't add nodes with AnnotationCollectors #150

@chrylis

Description

@chrylis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions