[jbosscache-dev] ReflectionUtil.getAnnotation() vs @Inherited for veriying superclasses

Galder Zamarreno galder.zamarreno at redhat.com
Thu Mar 19 19:23:29 EDT 2009


Hi,

If we make cache listener or scope annotations @Inherited, we'd avoid 
having to check superclasses in ReflectionUtil.getAnnotation(). Is there 
any particular reason why our annotations are not @Inherited and we 
check superclasses ourselves instead?

We still need to check implemented interfaces manually.

Cheers,
-- 
Galder Zamarreño
Sr. Software Maintenance Engineer
JBoss, a division of Red Hat



More information about the jbosscache-dev mailing list