Review request:Updated JDK-8004728 Implement core reflection API for parameter reflection
Remi Forax
forax at univ-mlv.fr
Sat Dec 22 10:11:26 UTC 2012
On 12/22/2012 06:54 AM, Joe Darcy wrote:
> Hello Eric,
>
> A few initial comments.
>
> I'm not convinced a getNumParameters method pulls its weight. At the
> very least, the specification should be updated to say whether or not
> it includes synthetic + "natural" parameters or just natural ones.
> (Different methods in core reflection indirectly return a synthetic +
> "natural" count vs a natural count today.)
Hi Joe,
getNumParameters (I prefer the name getParameterCount() BTW) is very
important for other languages than Java, by example most of the dynamic
language runtimes use multi-dispatch at the border between their
languages and Java, so their runtimes group methods with the same arity
together and being able to do that without calling getParameterTypes()
is a good idea IMO.
cheers,
RĂ©mi
More information about the core-libs-dev
mailing list