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-r...@openjdk.org> on behalf of Steffen Nießing <zuniq...@protonmail.com> Sent: Saturday, May 3, 2025 3:07 PM To: core-libs-dev@openjdk.org <core-libs-dev@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