RFR: JDK-8288573: Make Executable.getParameterCount() actually abstract [v2]
Joe Darcy
darcy at openjdk.org
Fri Jun 17 16:36:10 UTC 2022
> 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
Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
Update copyright year.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/9192/files
- new: https://git.openjdk.org/jdk/pull/9192/files/f1a3116c..131c8c1c
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=9192&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=9192&range=00-01
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/9192.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/9192/head:pull/9192
PR: https://git.openjdk.org/jdk/pull/9192
More information about the core-libs-dev
mailing list