Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8044629 (reflect) Constructor.getAnnotatedReceiverType() returns wrong value
  3. JDK-8175832

Release Note: Executable.getAnnotatedReceiverType() is sensitive to the kind of Executable

XMLWordPrintable

      The behavior of `getAnnotatedReceiverType()` has been clarified to return an empty AnnotatedType object only for a method/constructor which could conceptually have a receiver parameter but does not have one at present. (Since there is no receiver parameter, there are no annotations to return.) In addition, the behavior of getAnnotatedReceiverType() has been clarified to return null for a method/constructor which cannot ever have a receiver parameter (and therefore cannot have annotations on the type of a receiver parameter): static methods, and constructors of non-inner classes.
      Incompatibility: Behavioral

            darcy Joe Darcy
            rcalnan Roger Calnan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: