JDK-8336275 : Move common Method and Constructor fields to Executable
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 24
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-07-11
  • Updated: 2024-11-19
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
CSR :  
Relates :  
Description
The VM's creation of Method and Constructor already has superclass handling for AccessibleObject. When Executable was introduced in release 8, the VM side was not changed for ease of work. The move of these common fields to Executable may make the code in Method and Constructor much cleaner. In this process, we can probably drop the unused `slot` field as well.
Comments
Stopping work for now; plan to return after pattern deconstructors are integrated.
10-09-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20188 Date: 2024-07-16 03:45:36 +0000
16-07-2024

Preliminary patch at https://github.com/liachmodded/jdk/tree/feature/executable-inline
15-07-2024