JDK-8339131 : Remove rarely-used accessor methods from Opcode
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.classfile
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-08-28
  • Updated: 2024-09-05
  • Resolved: 2024-09-04
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 b14Fixed
Related Reports
CSR :  
Description
From offline discussion, we discovered that many methods in Opcode are rarely used yet is present, increasing initialization costs while providing little value. We should aim to simplify the fields, maybe as little as opcode, sizeIfFixed, and kind, and move other getters all into switches.
Comments
Changeset: bd8569bc Branch: master Author: Chen Liang <liach@openjdk.org> Date: 2024-09-04 12:29:40 +0000 URL: https://git.openjdk.org/jdk/commit/bd8569bc6cc888cbf514e9329e2c24a059d89711
04-09-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20757 Date: 2024-08-28 22:41:59 +0000
29-08-2024