RFR: 8374654: Inconsistent handling of lambda deserialization for Object method references on interfaces

Vicente Romero vromero at openjdk.org
Thu Jan 8 15:46:10 UTC 2026


On Tue, 6 Jan 2026 23:26:35 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:

> See [JDK-8374654](https://bugs.openjdk.org/browse/JDK-8374654). This fixes an inconsistency between generated Lambda `$deserialization$` methods and the runtime behaviour of `SerializedLambda` instances, for Object method references on interfaces. At runtime the methods are resolved to declared methods, so Object method references on interfaces will always have the `getImplMethodKind`, `getImplClass`, and `getImplMethodSignature` of the method declared in `Object`, not of an override in the interface.

lgtm

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

Marked as reviewed by vromero (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/29075#pullrequestreview-3640022113


More information about the compiler-dev mailing list