On Sat, 21 Mar 2026 00:20:56 GMT, Chen Liang <[email protected]> wrote:

> We should fix the return type of `DynamicCallSiteDesc.bootstrapMethod`; 
> luckily we can do this without breaking binary compatibility.

src/java.base/share/classes/java/lang/constant/DynamicCallSiteDesc.java line 
226:

> 224:      */
> 225:     @Override
> 226:     public DirectMethodHandleDesc bootstrapMethod() { return 
> bootstrapMethod; }

I believe that this might’ve been originally declared as a `MethodHandleDesc` 
with the expectation that the bootstrap method could potentially use a constant 
dynamic in some future JVM.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/30351#discussion_r2969426388

Reply via email to