[jboss-jira] [JBoss JIRA] Commented: (JBMICROCONT-124) Fixme in test org.jboss.test.classinfo.support.AnnotatedSubClass
Kabir Khan (JIRA)
jira-events at lists.jboss.org
Tue Jul 10 10:37:32 EDT 2007
[ http://jira.jboss.com/jira/browse/JBMICROCONT-124?page=comments#action_12368390 ]
Kabir Khan commented on JBMICROCONT-124:
----------------------------------------
It was basically a reminder to check that @Inherited annotated annotations are not inherited in the sub-class constructor. I have updated the test to show that we get the same behaviour as when using normal reflection, i.e.
java.lang.reflect.Constructor ctorx = AnnotatedSubClass.class.getConstructors()[0];
java.lang.annotation.Annotation[] anns = ctorx.getAnnotations();
for (int i = 0 ; i < anns.length ; i++)
{
System.out.println("==============> " + anns[i].annotationType() + " XXXX");
}
would output
==============> interface org.jboss.test.classinfo.support.AnotherAnnotation XXXX
and ignore the @SimpleAnnotation that is placed on the super constructor
> Fixme in test org.jboss.test.classinfo.support.AnnotatedSubClass
> ----------------------------------------------------------------
>
> Key: JBMICROCONT-124
> URL: http://jira.jboss.com/jira/browse/JBMICROCONT-124
> Project: JBoss MicroContainer
> Issue Type: Task
> Components: General
> Affects Versions: JBossMC_2_0_0 Beta
> Reporter: Adrian Brock
> Assigned To: Kabir Khan
> Priority: Minor
>
> There is a FIXME in the above class.
> Kabir can you update this task to describe the problem.
--
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