Implement Method.getParameterAnnotations() method
-------------------------------------------------
Key: JBBUILD-416
URL:
http://jira.jboss.com/jira/browse/JBBUILD-416
Project: JBoss Build System
Issue Type: Feature Request
Components: JBossRetro
Affects Versions: JBossRetro-1.1.2.GA
Reporter: Flavia Rainone
Consider class AnnotatedClass, whose method oneAnnotation() is annotated with
OneAnnotation.
The following test is failing:
Method oneAnnotationMeth = AnnotatedClass.class.getMethod("oneAnnotation",
params);
assertEquals(1, oneAnnotationMeth.getParameterAnnotations()[0].length);
Notice that the first component of oneAnnotationMeth.getParameterAnnotations()[0] should
be an Annotation representing the annotation used on oneAnnotation() method, i.e.:
assertEquals(AnnotationOne.class,
oneAnnotationMeth.getParameterAnnotations()[0][0].annotationType());
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira