JDK-8341199 : Use ClassFile's new API loadConstant(int)
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang.classfile
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-09-30
  • Updated: 2024-10-07
  • Resolved: 2024-09-30
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 b18Fixed
Description
The new API loadConstant(int) can shorten the calling path and can replace ldc when the parameter is of int/Integer type.


Comments
Changeset: f1bf469b Branch: master Author: Shaojin Wen <swen@openjdk.org> Date: 2024-09-30 14:12:01 +0000 URL: https://git.openjdk.org/jdk/commit/f1bf469b4ee07b48b629a126111e307d3cab7fd7
30-09-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/21259 Date: 2024-09-30 10:03:57 +0000
30-09-2024