[External] : Re: Method and Field Literals
Brian Goetz
brian.goetz at oracle.com
Wed Apr 20 16:30:06 UTC 2022
> It's again a couple of years later, is there already any desire to
> pursue the method and field literals topic?
The term "method and field literals" is somewhat overloaded, so let's be
more specific: what do you expect the _type_ of a method literal is? Is
it just jlr.Method? Or is MethodHandle / VarHandle also part of the
story? Is the goal simply to get earlier error checking that you
specified a method that exists (errors at compile time vs run time)? Or
to just have syntactic sugar for the reflective call? Or somehow an
expectation that the lookup can be more efficient, such as LDC
MethodHandle + MH.unreflect?
More information about the discuss
mailing list