RFR: 8374654: Inconsistent handling of lambda deserialization for Object method references on interfaces [v4]
Liam Miller-Cushon
cushon at openjdk.org
Thu Jan 22 11:42:48 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:
Test cleanup
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/29075/files
- new: https://git.openjdk.org/jdk/pull/29075/files/9dc60201..3c8912d3
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=29075&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=29075&range=02-03
Stats: 12 lines in 2 files changed: 1 ins; 6 del; 5 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