RFR: 8027170: Annotations declared on super-super-class should be overridden by super-class
Andreas Lundblad
andreas.lundblad at oracle.com
Thu Oct 24 09:18:30 UTC 2013
Hi,
Please review the fix for JDK-8027170 below.
Description:
Class.getAnnotationsByType did not differentiate between annotations in
superclass and annotations in supersuperclass. This is however required
by the definition of associated annotations.
The patch addresses this issue by modifying AnnotationSupport so that it
traverses the class hierarchy when searching for annotations associated
with the given class.
The new test, InheritedAssociatedAnnotations.java, demonstrates the
issue (and passes after the patch has been applied).
Link to web review:
http://cr.openjdk.java.net/~alundblad/8027170
Link to bug report:
https://bugs.openjdk.java.net/browse/JDK-8027170
Original discussion:
http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-October/022455.html
-- Andreas Lundblad
More information about the core-libs-dev
mailing list