On Mon, 28 Sep 2020 16:26:17 GMT, Peter Levart <plev...@openjdk.org> wrote:

> @AlanBateman you meant to say throwing CCE for mismatching parameter case 
> would make it **inconsistent** with
> Method.invoke, right? That's easy to change. We just catch CCE (and NPE?) and 
> re-throw them wrapped in IAE. We don't
> need to do that via MH combinators. Just directly in code. Performance will 
> remain the same.

Right, `Method::invoke` throws IAE (not CCE).

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

PR: https://git.openjdk.java.net/jdk/pull/313

Reply via email to