RFR: 8159746: (proxy) Support for default methods

Mandy Chung mchung at openjdk.java.net
Mon Sep 28 16:59:46 UTC 2020


On Mon, 28 Sep 2020 16:26:17 GMT, Peter Levart <plevart at 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


More information about the core-libs-dev mailing list