<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I have created <a href="https://bugs.openjdk.org/browse/JDK-8356119">https://bugs.openjdk.org/browse/JDK-8356119</a> for you. You can proceed to create a patch.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> core-libs-dev <core-libs-dev-retn@openjdk.org> on behalf of Steffen Nießing <zuniquex@protonmail.com><br>
<b>Sent:</b> Saturday, May 3, 2025 3:07 PM<br>
<b>To:</b> core-libs-dev@openjdk.org <core-libs-dev@openjdk.org><br>
<b>Subject:</b> Documentation fix in MethodHandles.Lookup</font>
<div> </div>
</div>
<div>
<div style="font-family:Arial,sans-serif; font-size:14px; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Hello,</div>
<div style="font-family:Arial,sans-serif; font-size:14px; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Arial,sans-serif; font-size:14px; color:rgb(0,0,0); background-color:rgb(255,255,255)">
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:
<span><a target="_blank" rel="noreferrer nofollow noopener" href="https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/lang/invoke/MethodHandles.java#L503-L504">https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/lang/invoke/MethodHandles.java#L503-L504</a></span>.</div>
<div style="font-family:Arial,sans-serif; font-size:14px; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Arial,sans-serif; font-size:14px; color:rgb(0,0,0); background-color:rgb(255,255,255)">
I'd propose to change the bytecode entry to <code>(FT) this.f;</code>. 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.</div>
<div style="font-family:Arial,sans-serif; font-size:14px; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Arial,sans-serif; font-size:14px; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Cheers,</div>
<div style="font-family:Arial,sans-serif; font-size:14px; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Steffen</div>
</div>
</body>
</html>