On Thu, 17 Sep 2026 15:20:09 GMT, Chen Liang <[email protected]> wrote:
>> We should fix the return type of `DynamicCallSiteDesc.bootstrapMethod`; >> luckily we can do this without breaking binary compatibility. >> >> --------- >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Chen Liang has refreshed the contents of this pull request, and previous > commits have been removed. The incremental views will show differences > compared to the previous content of the PR. The pull request contains one new > commit since the last revision: > > Add public bridge interface src/java.base/share/classes/java/lang/constant/ConstantDescs.java line 395: > 393: * @since 28 > 394: */ > 395: public sealed interface CallSiteBootstrapMethodHook permits > DynamicCallSiteDesc { I don’t really like this being `public`, since if **Java** ever gets a way to explicitly declare desired bridge methods, then this interface would become legacy baggage. -------------------------------------------------------------------------------- Something like: public final class DynamicCallSiteDesc { public bridge MethodHandleDesc bootstrapMethod(); public DirectMethodHandleDesc bootstrapMethod() { return bootstrapMethod; } } ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/30351#discussion_r4049368433
