Please review this patch to constrain constant dynamic bootstrap methods to 
methods whose first parameter type is MethodHandles.Lookup.


We are conservatively diverging from invoke dynamic bootstrap method invocation 
behaviour to possibly diverge further in the future and allow for constant 
dynamic bootstrap methods that are invoked without the lookup/name/type 
arguments. The change enables further divergence in a future release without 
breaking compatibility.

This would make it easier to use existing methods as bootstrap methods rather 
than invoking via a level of indirection for explicit wrappers or using 
ConstantBootstraps.invoke. The experience garnered from prototyping language 
and low-level library features informs us this is useful.

CSR is here:



Reply via email to