[code-reflection] RFR: Determine if lambda operation originates from a method reference [v2]

Paul Sandoz psandoz at openjdk.org
Tue Apr 23 16:02:45 UTC 2024


On Tue, 23 Apr 2024 11:22:08 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> Paul Sandoz has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Update src/java.base/share/classes/java/lang/reflect/code/op/CoreOps.java
>>   
>>   Co-authored-by: Maurizio Cimadamore <54672762+mcimadamore at users.noreply.github.com>
>
> 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?

Yes, code models are immutable and all code items in models have identity.

-------------

PR Review Comment: https://git.openjdk.org/babylon/pull/60#discussion_r1576512489


More information about the babylon-dev mailing list