JDK-8355442 : Reference field lambda forms with type casts are not generated
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Affected Version: 24
  • Priority: P4
  • Status: In Progress
  • Resolution: Unresolved
  • Submitted: 2025-04-23
  • Updated: 2025-04-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25Unresolved
Related Reports
Relates :  
Description
Field lambda forms bytecode that accepts a class argument and performs a cast is not pregenerated in the jlink image.

Try execute `javap java.lang.invoke.DirectMethodHandle\$Holder`, observe that get/putReference(Volatile) has no type-checked versions.
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/24887 Date: 2025-04-25 20:30:15 +0000
25-04-2025