RFR: 8374654: Inconsistent handling of lambda deserialization for Object method references on interfaces [v4]
Liam Miller-Cushon
cushon at openjdk.org
Thu Jan 22 17:03:02 UTC 2026
On Thu, 22 Jan 2026 11:42:48 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.
>
> Liam Miller-Cushon has updated the pull request incrementally with one additional commit since the last revision:
>
> Test cleanup
As discussed in #28943 am I going to include these changes in the other fix
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29075#issuecomment-3785524988
More information about the compiler-dev
mailing list