Integrated: JDK-8288573: Make Executable.getParameterCount() actually abstract
Joe Darcy
darcy at openjdk.org
Fri Jun 17 17:02:01 UTC 2022
On Thu, 16 Jun 2022 21:21:36 GMT, Joe Darcy <darcy at openjdk.org> wrote:
> Whatever the motivation for how this method was coded when added in JDK 8, since Executable is now a sealed class with Constructor and Method the only allowed subclasses, getParameterCount can be coded as an normal abstract method. (The implementation of getParameterCount in Method and Constructor use fields private to each of those classes so the code cannot easily be shared in Executable).
>
> Please also review the small accompanying CSR: https://bugs.openjdk.org/browse/JDK-8288630
This pull request has now been integrated.
Changeset: 47b86690
Author: Joe Darcy <darcy at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/47b86690b6672301aa46d4a7b9ced58d17047cc7
Stats: 4 lines in 1 file changed: 0 ins; 2 del; 2 mod
8288573: Make Executable.getParameterCount() actually abstract
Reviewed-by: iris, alanb, jpai
-------------
PR: https://git.openjdk.org/jdk/pull/9192
More information about the core-libs-dev
mailing list