Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8027170

Annotations declared on super-super-class should be overridden by super-class.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • core-libs
    • None
    • 8
    • b115
    • Verified

    Description

      With an @Inheritable and @Repeatable annotation Ann and with the class declarations below, B3.getAnnotationsByType and C3.getAnnotationsByType should not return the annotations of B1 resp. C1.

      @Ann(10) @Ann(11)
      class B1 {}

      @Ann(20)
      class B2 extends B1 {}

      class B3 extends B2 {}


      @Ann(10)
      class C1 {}

      @Ann(20) @Ann(21)
      class C2 extends C1 {}

      class C3 extends C2 {}

      See http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-October/022455.html for further details.

      Attachments

        Activity

          People

            alundblad Andreas Lundblad (Inactive)
            alundblad Andreas Lundblad (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: