Bug 286539 - more state in declare anno
Summary: more state in declare anno
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: 1.6.6   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-13 11:42 EDT by Andrew Clement CLA
Modified: 2009-09-03 12:56 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Clement CLA 2009-08-13 11:42:12 EDT
 
Comment 1 Andrew Clement CLA 2009-08-13 12:31:40 EDT
Declare annotation now records the fully qualified type of the annotation involved in the program element.  It is accessible through getAnnotationType() and the result will be something like 'p.q.r.Foo'.  It works for all variants of declare annotation.

Not straightforward to implement as attempting to discover the annotation very early (when the model is built) causes us to try and grab it from the Eclipse representation of the method and we don't want to do that as it runs expensive conversion to convert the eclipse anno to an AspectJ anno.  The solution was to adjust it so that if we only need the type we don't convert the entire annotation.
Comment 2 Andrew Clement CLA 2009-09-03 12:56:24 EDT
fixed