[jboss-jira] [JBoss JIRA] Created: (JBBUILD-416) Implement Method.getParameterAnnotations() method
Flavia Rainone (JIRA)
jira-events at lists.jboss.org
Mon Sep 10 10:51:11 EDT 2007
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
More information about the jboss-jira
mailing list