JDK-8288573 : Make Executable.getParameterCount() actually abstract
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2022-06-16
  • Updated: 2024-10-27
  • Resolved: 2022-06-17
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 20
20 b03Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
Description
A DESCRIPTION OF THE PROBLEM :
Since the `java.lang.reflect.Executable` class is sealed as of JDK-8224243, the pseudo‑abstract `Executable.getParameterCount()` instance method can have its body removed and be made into a real abstract method.



Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/9192 Date: 2022-06-16 21:21:36 +0000
27-10-2024

Changeset: 47b86690 Author: Joe Darcy <darcy@openjdk.org> Date: 2022-06-17 16:57:38 +0000 URL: https://git.openjdk.org/jdk/commit/47b86690b6672301aa46d4a7b9ced58d17047cc7
17-06-2022

The method in question was added by JDK-8004729. Not sure why it was done that way.
16-06-2022

Moved to JDK for further evaluations.
16-06-2022