[code-reflection] RFR: Determine if lambda operation originates from a method reference
Maurizio Cimadamore
mcimadamore at openjdk.org
Tue Apr 23 11:24:41 UTC 2024
On Mon, 22 Apr 2024 20:49:40 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
> Add a method to determines if a lambda operation could have originated from a method reference declared in Java source code.
>
> Consider later generalizing to a lambda operation that may have originated from a lambda expression that only invokes another method, which may include the capturing of some or all method arguments.
src/java.base/share/classes/java/lang/reflect/code/op/CoreOps.java line 610:
> 608: return null;
> 609: }
> 610: if (invokeResult.op() != methodRefInvokeOp) {
Is `!=` robust enough here?
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/60#discussion_r1576085473
More information about the babylon-dev
mailing list