RFR(S): 8147078: MethodHandles.catchException does not enforce Throwable subtype
Sundararajan Athijegannathan
sundararajan.athijegannathan at oracle.com
Thu Jan 14 11:35:26 UTC 2016
+1
-Sundar
On 1/14/2016 4:52 PM, Michael Haupt 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.
>
> Thanks,
>
> Michael
>
More information about the core-libs-dev
mailing list