[jboss-jira] [JBoss JIRA] Created: (JBBUILD-326) JBossRetro missing getDeclaredAnnotations; getAnnotations implementation is deficient
David Lloyd (JIRA)
jira-events at jboss.com
Tue Oct 31 09:34:42 EST 2006
JBossRetro missing getDeclaredAnnotations; getAnnotations implementation is deficient
-------------------------------------------------------------------------------------
Key: JBBUILD-326
URL: http://jira.jboss.com/jira/browse/JBBUILD-326
Project: JBoss Build System
Issue Type: Bug
Components: JBossRetro
Affects Versions: JBossRetro-1.0.4.GA
Reporter: David Lloyd
Priority: Minor
Fix For: JBossRetro-1.0.5.GA
I put in a fix to JBossRetro to add support for getDeclaredAnnotations on Method, Field, Constructor, and AccessibleObject. In doing this I realized that getAnnotations seems to be doing what getDeclaredAnnotations is supposed to be doing; according to the JDK javadocs, getAnnotations is supposed to return inherited annotations as well as declared annotations, whereas getDeclaredAnnotations only returns annotations on the specific object.
I committed a change to implement getDeclaredAnnotations which essentially duplicates the current getAnnotations behavior, but someone may want to go in and enhance getAnnotations.
I'm attaching the patch that I committed in case I'm wrong and someone wants to revert it.
--
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