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.
I'm writing an AST transformation that's similar to JPA's
@OneToOnein 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.