groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesper Steen Møller <jes...@selskabet.org>
Subject Re: About the native lambda
Date Fri, 22 Dec 2017 10:26:06 GMT

> On 22 Dec 2017, at 10.48, Daniel.Sun <sunlan@apache.org> wrote:
> 
>       The problem I am trying to resolve is how to get the method's name
> and descriptor? [2] It seems the type flow analysis have to rely on the
> existing static compilation...
> 

There is no short cut possible here: You need full static analysis to make lambdas Java-compatible
and emit the right invokedynamic calls. And the type inference is really complicated w.r.t
overloads.

You can read about it here: http://cr.openjdk.java.net/~dlsmith/jsr335-0.6.1/F.html

-Jesper
Mime
View raw message