On Sat, 21 Mar 2026 10:31:14 GMT, ExE Boss <[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.

Unlikely, an entry in the BootstrapMethods table most likely will stay a MH 
constant plus a list of argument constants. Such a refactor would also hurt 
DynmicConstantDesc.

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

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

Reply via email to