JDK-8225488 : Examine ExecutableType.getReceiverType behavior when source receiver parameter is absent
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-06-07
  • Updated: 2023-11-29
  • Resolved: 2021-08-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 18
18 b10Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
Relates :  
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.
Comments
Changeset: 7fc99cf9 Author: Joe Darcy <darcy@openjdk.org> Date: 2021-08-09 18:33:34 +0000 URL: https://git.openjdk.java.net/jdk/commit/7fc99cf9b69f99fc78709e57b92cd88e09577d0f
09-08-2021