JDK-8340831 : Simplify simple validation for class definition in MethodHandles.Lookup
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-09-24
  • Updated: 2024-09-30
  • Resolved: 2024-09-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 24
24 b17Fixed
Description
Currently, MethodHandles.Lookup performs many checks operating on raw bytecode. Those checks are often partial; they can go through our established class file and constant APIs instead. In particular, we might remove MethodHandles.Lookup.ClassFile.
Comments
Changeset: 84751cbf Branch: master Author: Chen Liang <liach@openjdk.org> Date: 2024-09-25 18:31:24 +0000 URL: https://git.openjdk.org/jdk/commit/84751cbfddf69bd9ed6bc5c39f8e056009440331
25-09-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/21170 Date: 2024-09-24 22:07:25 +0000
24-09-2024