[jdk17] Integrated: JDK-8269351: Proxy::newProxyInstance and MethodHandleProxies::asInterfaceInstance should reject sealed interfaces
Mandy Chung
mchung at openjdk.java.net
Sat Jun 26 16:50:05 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
This pull request has now been integrated.
Changeset: 3d0d27ce
Author: Mandy Chung <mchung at openjdk.org>
URL: https://git.openjdk.java.net/jdk17/commit/3d0d27ce57b4456b6fab86f05e105241ddf8471e
Stats: 101 lines in 4 files changed: 97 ins; 0 del; 4 mod
8269351: Proxy::newProxyInstance and MethodHandleProxies::asInterfaceInstance should reject sealed interfaces
Reviewed-by: darcy, alanb
-------------
PR: https://git.openjdk.java.net/jdk17/pull/148
More information about the core-libs-dev
mailing list