On Thu, 16 Jun 2022 21:21:36 GMT, Joe Darcy <da...@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

Associated CSR also Reviewed.

-------------

Marked as reviewed by iris (Reviewer).

PR: https://git.openjdk.org/jdk/pull/9192

Reply via email to