RFR: 8004912: Repeating annotations - getAnnotationsByType is not working as expected

Andreas Lundblad andreas.lundblad at oracle.com
Wed Oct 16 14:00:08 UTC 2013


Hi,

Please review the fix for JDK-8004912 and JDK-8019420 below.

Description:

The behavior of Class.get[Declared]AnnotationsByType was wrong. These methods delegate to sun.reflect.annotation.AnnotationSupport which has been rewritten.

NonInheritableContainee.java is added and contains the test referred to in JDK-8019420.

RepeatedUnitTest.java have been updated to include the test cases in JDK-8004912.

There are more tests available in tl/langtools/test/tools/javac/annotations/repeatingAnnotations/combo/ReflectionTest.java (NB. this file is in the langtools repo)


Link to web review:
http://cr.openjdk.java.net/~alundblad/8019420-and-8004912/

Link to bug reports:
https://bugs.openjdk.java.net/browse/JDK-8004912
https://bugs.openjdk.java.net/browse/JDK-8019420


-- Andreas Lundblad



More information about the core-libs-dev mailing list