Re: Use Method.getParameterCount() where possible

2020-04-06 Thread Claes Redestad
Thanks, pushed as https://bugs.openjdk.java.net/browse/JDK-8242208 /Claes On 2020-04-06 13:38, Chris Hegarty wrote: The changes look good to me. -Chris. On 6 Apr 2020, at 11:44, Claes Redestad wrote: Hi, looks good and trivial to me. I'll sponsor. /Claes (I hope we can wrap up

Re: Use Method.getParameterCount() where possible

2020-04-06 Thread Chris Hegarty
The changes look good to me. -Chris. > On 6 Apr 2020, at 11:44, Claes Redestad wrote: > > Hi, > > looks good and trivial to me. I'll sponsor. > > /Claes > > (I hope we can wrap up https://bugs.openjdk.java.net/browse/JDK-8029019 > some day, soon) > > On 2020-04-03 12:19, Christoph Dreis

Re: Use Method.getParameterCount() where possible

2020-04-06 Thread Claes Redestad
Hi, looks good and trivial to me. I'll sponsor. /Claes (I hope we can wrap up https://bugs.openjdk.java.net/browse/JDK-8029019 some day, soon) On 2020-04-03 12:19, Christoph Dreis wrote: Hi, I noticed that the JDK itself still uses Method.getParameterTypes().length in a couple of places.

Use Method.getParameterCount() where possible

2020-04-03 Thread Christoph Dreis
Hi, I noticed that the JDK itself still uses Method.getParameterTypes().length in a couple of places. This could be replaced with Method.getParameterCount() to avoid unnecessary cloning overhead. While this is often optimized away, I guess it's still good to not rely on that. Additionally,