-
Bug
-
Resolution: Fixed
-
P2
-
8
-
b115
-
Verified
getAnnotations(Class<T>), now renamed to getAnnotationsByType(Class<T>) is not working as expected for following 4 test scenarios:
1. SingleAnnoOnSuperContainerOnSub.java - @Foo on super class, @FooContainer(@Foo, @Foo) on sub class
2. ContainerOnSuperSingleOnSub.java - @FooContainer(@Foo, @Foo) on super class, @Foo on sub class
3. SingleOnSuperRepeatableOnSub.java - @Foo on super class, @Foo, @Foo on sub class
4. RepeatableOnSuperSingleOnSub.java - @Foo @Foo on super class, @Foo on sub class
In all the above cases, @ContainedBy/@ContainerFor relationship is defined.
Test src attached for all 4 cases.
1. SingleAnnoOnSuperContainerOnSub.java - @Foo on super class, @FooContainer(@Foo, @Foo) on sub class
2. ContainerOnSuperSingleOnSub.java - @FooContainer(@Foo, @Foo) on super class, @Foo on sub class
3. SingleOnSuperRepeatableOnSub.java - @Foo on super class, @Foo, @Foo on sub class
4. RepeatableOnSuperSingleOnSub.java - @Foo @Foo on super class, @Foo on sub class
In all the above cases, @ContainedBy/@ContainerFor relationship is defined.
Test src attached for all 4 cases.
- blocks
-
JDK-8020970 j.l.Class.getAnnotationsByType(Class) returns wrong result for inherited repeating annotations
- Closed
- duplicates
-
JDK-8027235 j.l.Class.getAnnotationsByType behavior still is incorrect
- Closed
- relates to
-
JDK-8025432 j.l.Class.getAnnotationsByType() returns wrong result for inherited repeated annotations
- Closed
-
JDK-8020970 j.l.Class.getAnnotationsByType(Class) returns wrong result for inherited repeating annotations
- Closed
-
JDK-8001457 New tests needed for library-side changes for repeating annotations
- Closed