RFR: 8374654: Inconsistent handling of lambda deserialization for Object method references on interfaces [v2]
Liam Miller-Cushon
cushon at openjdk.org
Mon Jan 19 22:11:00 UTC 2026
> 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:
Only resolve object methods on interfaces
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/29075/files
- new: https://git.openjdk.org/jdk/pull/29075/files/6ce63a4a..e6c4855a
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=29075&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=29075&range=00-01
Stats: 26 lines in 2 files changed: 20 ins; 0 del; 6 mod
Patch: https://git.openjdk.org/jdk/pull/29075.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29075/head:pull/29075
PR: https://git.openjdk.org/jdk/pull/29075
More information about the compiler-dev
mailing list