JDK-8222369 : ExecutableElement.getReceiverType returns null instead of NOTYPE
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.lang.model
  • Affected Version: 13
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-04-11
  • Updated: 2023-11-30
  • Resolved: 2019-06-13
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 14
14 b02Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8238893 :  
It seems that ExecutableElement.getReceiverType can return null, whereas the spec says it should return  NoType with kind NONE if the executable has no receiver type.

URL: http://hg.openjdk.java.net/jdk/jdk/rev/4a3c13548b9e User: darcy Date: 2019-06-13 23:39:35 +0000

Deferring to 14.

Review thread: https://mail.openjdk.java.net/pipermail/compiler-dev/2019-June/013451.html

The method in question was added in JDK 8 under JDK-8007803 as part of the type annotations work.