-
CSR
-
Resolution: Approved
-
P3
-
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.
- csr of
-
JDK-8222369 ExecutableElement.getReceiverType returns null instead of NOTYPE
-
- Resolved
-