> On 22 Dec 2017, at 10.48, Daniel.Sun <sun...@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