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

Examine ExecutableType.getReceiverType behavior when source receiver parameter is absent

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 18
    • tools
    • None
    • behavioral
    • minimal
    • Java API
    • SE

      Summary

      Update javac's implementation of ExecutableType.getReceiverType() to return NONE rather than null if a receiver type is not defined.

      Problem

      The implementation of ExecutableType.getReceiverType() in javac does not obey the specification in cases where the receiver type is not explicitly set.

      Solution

      Update the implementation. The analogous change for ExecutableElement.getReceiverType() was made under JDK-8222369.

      Specification

      No specification update; behavior change only.

            darcy Joe Darcy
            darcy Joe Darcy
            Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: