ExecutableElement.getReceiverType returns null instead of NOTYPE

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P3
    • 14
    • Component/s: core-libs
    • None
    • behavioral
    • low
    • Existing users of the API may have workarounds to the old, buggy, behavior that could need updating. The behavior in cases where there is already a non-`null` result is *not* changed.
    • Java API
    • Implementation

      Summary

      Fix ExecutableElement.getReceiverType to follow its specification and to return an object rather than null for "no type" results.

      Problem

      In cases where the specification of ExecutableElement.getReceiverType required a sentinel object to be returned -- a NoType type mirror, with kind NONE -- the javac implementation returned null.

      Solution

      Fix the implementation to follow the specification.

      Specification

      No specification change; behavioral change only.

            Assignee:
            Joe Darcy
            Reporter:
            Jonathan Gibbons
            Alex Buckley, Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: