RFR 8220378: Unused Names fields

Jonathan Gibbons jonathan.gibbons at oracle.com
Mon Mar 11 17:10:30 UTC 2019


On 3/11/19 9:40 AM, Liam Miller-Cushon wrote:
> On Sun, Mar 10, 2019 at 6:00 PM Jonathan Gibbons 
> <jonathan.gibbons at oracle.com <mailto:jonathan.gibbons at oracle.com>> wrote:
>
>     It will be interesting to spot-check a few to go back and see why
>     the name was
>     introduced in the first place, to understand why it is no longer
>     required.
>
> Two of the more recent unused entries are:
> * java.lang.invoke.MethodHandle added in 
> http://hg.openjdk.java.net/jdk/jdk/rev/4161b56e0d20, and
> * java.lang.AutoCloseable added in 
> http://hg.openjdk.java.net/jdk/jdk/rev/3a8158299c51
>
> Both of those were unused at the time they were added, perhaps they 
> were left over from earlier iterations of the change that was 
> eventually submitted.


Yes, I see that the names are created and used indirectly via Symtab and Symbol/Type.

+ autoCloseableType = enterClass("java.lang.AutoCloseable");

+ methodHandleType = enterClass("java.lang.invoke.MethodHandle");

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20190311/33483670/attachment.html>


More information about the compiler-dev mailing list