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 :  
Description
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.

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

Deferring to 14.
10-06-2019

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

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