Bug 277045 - [plan] org.aspectj.lang.reflect.Advice should give access to annotations and to parameter names
Summary: [plan] org.aspectj.lang.reflect.Advice should give access to annotations and ...
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 critical with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-19 22:09 EDT by Eric Bodden CLA
Modified: 2013-06-24 11:06 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Bodden CLA 2009-05-19 22:09:20 EDT
org.aspectj.lang.reflect.Advice should support a method getAnnotations() that returns annotations attached to this advice; this may or may not include annotations that ajc places there by itself during the weaving process but it should at least include all user-supplied annotations

note that this bug is related to bug 234932, in which I state the problem that currently annotations on advice are not even preserved

currently the lack of support for this is stopping me from getting a project done
Comment 1 Eric Bodden CLA 2009-05-19 22:16:02 EDT
I just realized that one also cannot obtain parameter names from the advice (only their types); the pointcut contains a textual representation of the bound parameters but gives no indication of their order; I have a use case where I need to know the parameter's names
Comment 2 Andrew Clement CLA 2009-06-08 15:38:02 EDT
unlikely to make 1.6.5 but coming onto the radar.
Comment 3 Andrew Clement CLA 2013-06-24 11:06:58 EDT
unsetting the target field which is currently set for something already released