Method and Field Literals

Peter Lawrey peter.lawrey at gmail.com
Tue Apr 19 14:52:46 UTC 2022


There is from me, but people seem comfortable with reflection instead.

Cheers,
   Peter.

On Mon, 18 Apr 2022 at 19:55, arjan tijms <arjan.tijms at gmail.com> wrote:

> Hi,
>
> It's again a couple of years later, is there already any desire to
> pursue the method and field literals topic?
>
> Kind regards,
> Arjan Tijms
>
> On Fri, Jul 27, 2018 at 7:00 PM Martijn Verburg <martijnverburg at gmail.com>
> wrote:
>
> > @HereBeDragons - I’m almost tempted to raise a JEP.
> >
> > On Fri, 27 Jul 2018 at 16:45, Brian Goetz <brian.goetz at oracle.com>
> wrote:
> >
> > > > The non easy way is to make the method reference Serializable,
> > serialize
> > > it and extract the Serialization proxy which contains the class, the
> > method
> > > etc.
> > >
> > > In addition to non-easy, this is also non-safe, non-cost-free, etc.
> > > Let's put this in the category of "dangerous workarounds" :)
> > >
> > >
> > > --
> > Cheers, Martijn (Sent from Gmail Mobile)
> >
>


More information about the discuss mailing list