RFR: 8282080: Lambda deserialization fails for Object method references on interfaces
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Thu Apr 28 11:56:45 UTC 2022
On Thu, 28 Apr 2022 11:48:55 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This is related:
> https://bugs.openjdk.java.net/browse/JDK-8022095
>From this, it can be deduced that the behavior if javac preferring invokevirtual to invokeinterface was surprising, but ultimately compliant with the spec (as the rules for BC for method calls are more flexible than those for field access). All this to say that the compiler is free to emit `Object::toString` or `I::toString` more or less as it pleases.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8054
More information about the compiler-dev
mailing list