RFR(S): 8147078: MethodHandles.catchException does not enforce Throwable subtype
Paul Sandoz
paul.sandoz at oracle.com
Thu Jan 14 12:44:36 UTC 2016
> On 14 Jan 2016, at 12:22, Michael Haupt <michael.haupt at oracle.com> wrote:
>
> Dear all,
>
> please review this fix.
> Bug: https://bugs.openjdk.java.net/browse/JDK-8147078
> Webrev: http://cr.openjdk.java.net/~mhaupt/8147078/webrev.00
>
> Unlike MethodHandles.throwException, MethodHandles.catchException does not enforce that the passed exception type is indeed a subtype of Throwable. The change adds the corresponding check, and a test.
>
Erasure bites! +1
Paul.
More information about the core-libs-dev
mailing list