Bug 458194 - It would be nice if annotations declared in aspects generated from an annotation processor would in turn be available for annotation processing
Summary: It would be nice if annotations declared in aspects generated from an annotat...
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.8.4   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-22 17:13 EST by Steinar Henriksen CLA
Modified: 2015-01-22 17:13 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steinar Henriksen CLA 2015-01-22 17:13:58 EST
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;
}