Skip to content

incremental compiler erroneously removes AST annotations from fields #156

@chrylis

Description

@chrylis

I'm writing an AST transformation that's similar to JPA's @OneToOne in that the annotation should be applied to matching fields on separate classes. In my transformation class, I look up the field on the "other" class that corresponds to the back reference and verify that it carries the annotation. This is failing in the incremental compiler only; in the incremental compiler, annotations corresponding to AST transformations are removed from fields, regardless of the retention policy of those annotations.

This bug does not appear to affect transformation annotations applied to types or methods, only fields.

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