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 
307:

> 305: sealed interface BootstrapMethodHook {
> 306:     MethodHandleDesc bootstrapMethod();
> 307: }

I wish there was a way to declare required bridge overloads without needing 
interfaces such as these (which only works for public instance methods), or 
needing some sort of post‑compilation bytecode rewriting (which works for any 
method, but significantly complicates the build steps).

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

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

Reply via email to