RFR: 8374654: Inconsistent handling of lambda deserialization for Object method references on interfaces [v3]
Liam Miller-Cushon
cushon at openjdk.org
Thu Jan 22 11:14:53 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision:
- Use --debug=dumpLambdaDeserializationStats in test
- Merge remote-tracking branch 'origin/master' into JDK-8374654
- Only resolve object methods on interfaces
- Add a test
- 8374654: Inconsistent handling of lambda deserialization for Object method references on interfaces
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/29075/files
- new: https://git.openjdk.org/jdk/pull/29075/files/e6c4855a..9dc60201
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=29075&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=29075&range=01-02
Stats: 84487 lines in 3664 files changed: 44307 ins; 14738 del; 25442 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