[resteasy-dev] Lambda question

Steven Schlansker sschlansker at opentable.com
Mon Apr 3 13:49:22 EDT 2017


> On Apr 3, 2017, at 10:11 AM, Ron Sigal <rsigal at redhat.com> wrote:
> ...
> 
> So, it seems that, for lambdas, Java doesn't keep the implementation type and value of the type variable at run time. Does anyone have any ideas or tricks?

I did not have time to play with it myself, but I did run across this:
https://stackoverflow.com/questions/23863716/java-how-to-resolve-generic-type-of-lambda-parameter
maybe that helps?

It sounds like the "right approach" would be to request Java stash the type information better for lambdas...




More information about the resteasy-dev mailing list