On Fri, 18 Sep 2026 18:04:18 GMT, ExE Boss <[email protected]> wrote: >> 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; } > }
This explicit interface was recommended in the CSR review. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/30351#discussion_r4049487121
