Documentation fix in MethodHandles.Lookup
Chen Liang
chen.l.liang at oracle.com
Sun May 4 04:33:58 UTC 2025
I have created https://bugs.openjdk.org/browse/JDK-8356119 for you. You can proceed to create a patch.
________________________________
From: core-libs-dev <core-libs-dev-retn at openjdk.org> on behalf of Steffen Nießing <zuniquex at protonmail.com>
Sent: Saturday, May 3, 2025 3:07 PM
To: core-libs-dev at openjdk.org <core-libs-dev at openjdk.org>
Subject: Documentation fix in MethodHandles.Lookup
Hello,
I've found a small documentation inconvenience in the MethodHandles.Lookup class documentation. In the Lookup Factory Methods table the field types of the member and bytecode definitions for lookup.findGetter diverge: https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/lang/invoke/MethodHandles.java#L503-L504.
I'd propose to change the bytecode entry to (FT) this.f;. I'm a new contributor and don't have access to the JBS yet. I'd be grateful, if anyone would like to sponsor me here.
Cheers,
Steffen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250504/ed538667/attachment-0001.htm>
More information about the core-libs-dev
mailing list