RFR: 8282080: Lambda deserialization fails for Object method references on interfaces

Maurizio Cimadamore mcimadamore at openjdk.java.net
Thu Apr 28 11:52:48 UTC 2022

On Thu, 28 Apr 2022 11:22:42 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> Actually, my reading of the JLS is incorrect. JLS says that the type of the binary qualifier is the type of the class in which the method has been declared, either explicitly, or implicitly. For interfaces, Object methods are declared implicitly by the interface, so it would seem that the type of the binary qualifier in this case is indeed the interface type, and that JDK-8272564 rectified that issue.

This is related:


PR: https://git.openjdk.java.net/jdk/pull/8054

More information about the compiler-dev mailing list