JDK-8271703 : Examine ExecutableType.getReceiverType behavior when source receiver parameter is absent
  • Type: CSR
  • Component: tools
  • Sub-Component: javac
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 18
  • Submitted: 2021-08-02
  • Updated: 2021-08-09
  • Resolved: 2021-08-09
Related Reports
CSR :  
Description
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.
Comments
:+1
09-08-2021

Moving to Approved.
09-08-2021

Adding [~jjg] as a reviewer.
09-08-2021