On Fri, 25 Jun 2021 17:24:58 GMT, Mandy Chung <mch...@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 <mch...@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