Repeating annotations - getAnnotationsByType(Class<T>) is not working as expected for few inheritance scenarios

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 8
    • Affects Version/s: 8
    • Component/s: core-libs
    • 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.

            Assignee:
            Andreas Lundblad (Inactive)
            Reporter:
            Sonali Goel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: