Community
Participate
Working Groups
It would be nice if annotations declared in aspects generated from an annotation processor (implementation of javax.annotation.processing.Processor) would in turn be available for annotation processing. For example, when generating Java source code from an annotation processor, if the generated source code contains an annotation, then that annotation will be made available for annotation processing. The following is an example aspect that could have been generated from an annotation processor. The aspect-declared @SuperEntity annotation will not be available for annotation processing if it has been generated. You can get it at runtime if it has the right retention, but that's not the point. import javax.persistence.Entity; import foo.SuperEntity; public aspect DoIt { declare @type : (@Entity *) : @SuperEntity; }