[jdk17] RFR: JDK-8269351: Proxy::newProxyInstance and MethodHandleProxies::asInterfaceInstance should reject sealed interfaces
Joe Darcy
darcy at openjdk.java.net
Fri Jun 25 21:23:03 UTC 2021
On Fri, 25 Jun 2021 17:24:58 GMT, Mandy Chung <mchung at openjdk.org> wrote:
> `java.lang.reflect.Proxy::newProxyInstance` and `java.lang.invoke.MethodHandleProxies::asInterfaceInstance` do not specify how to deal with sealed interfaces. These APIs should reject sealed interface with `IllegalArgumentException` which is thrown if the given interface is invalid.
>
> Please review CSR:
> https://bugs.openjdk.java.net/browse/JDK-8269396
Marked as reviewed by darcy (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk17/pull/148
More information about the core-libs-dev
mailing list