]
Paul Gier updated JBBUILD-326:
------------------------------
Fix Version/s: JBossRetro-1.0.5.GA
(was: JBossRetro-1.0.6.GA)
Assignee: David Lloyd
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
Assigned To: David Lloyd
Priority: Minor
Fix For: JBossRetro-1.0.5.GA
Attachments: jbretro.patch
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: