JDK 14 RFR of JDK-8222369: ExecutableElement.getReceiverType returns null instead of NOTYPE
Joseph D. Darcy
joe.darcy at oracle.com
Thu Jun 13 23:06:39 UTC 2019
Hello,
Now that there is a line of development for JDK 14 separate from JDK 13,
please review the fix and CSR for
JDK-8222369: ExecutableElement.getReceiverType returns null instead
of NOTYPE
webrev: http://cr.openjdk.java.net/~darcy/8222369.1/
CSR: https://bugs.openjdk.java.net/browse/JDK-8225755
For ElementStructureTest.java, I mapped back the results of
getReceiverType to null to verify no other behavior of the method was
unintentionally changed. The hashes used for comparison in the test
could be updated instead.
Since there is the possibility users of the method might have worked
around its old behavior, getting the fix into build 01 of JDK 14
maximizes the time to flush out any behavioral incompatibilities.
Thanks,
-Joe
On 6/6/2019 2:52 PM, Joe Darcy wrote:
> Hello,
>
> Please review the fix for
>
> JDK-8222369: ExecutableElement.getReceiverType returns null
> instead of NOTYPE
> http://cr.openjdk.java.net/~darcy/8222369.0/
>
> In the javac implementation, the getReceiverType method is pulled up
> to the root of the hierarchy and is defined to return null.
>
> The hashing in tools/javac/ElementStructureTest will also need to be
> adjusted when this fix goes in since that test does factor the result
> of getReceiver type into its hash.
>
> Thanks,
>
> -Joe
>
More information about the compiler-dev
mailing list