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

Examine ExecutableType.getReceiverType behavior when source receiver parameter is absent

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 13
    • 18
    • tools
    • None
    • b10

    Description

      The receiver parameter language structure was added in Java SE 8 as part of the type annotations effort. Receiver parameters provide a syntactic structure to associate annotations, when need, with a method's receiver or a nested constructor's enclosing class.

      The javax.lang.model API was augmented to include methods to return the receiver *type* (JDK-8007803). Conceptually, a receiver type exists whether or not the syntax of a receiver parameter is present.

      However, javac's implementation of the language model only exposes non-trivial receiver types if the receiver parameter syntax was present in the sources.

      Attachments

        Issue Links

          Activity

            People

              darcy Joe Darcy
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: