8294961: Convert java.base/java.lang.reflect.ProxyGenerator to use the Classfile API to generate proxy classes

Reviewed-by: mchung
This commit is contained in:
Adam Sotona 2024-03-06 06:15:10 +00:00
parent 96bfe613c3
commit bee50cd330
2 changed files with 349 additions and 409 deletions

View file

@ -618,6 +618,7 @@ public class Proxy implements java.io.Serializable {
private final List<Class<?>> interfaces;
private final ProxyClassContext context;
ProxyBuilder(ClassLoader loader, List<Class<?>> interfaces) {
Objects.requireNonNull(interfaces);
if (!VM.isModuleSystemInited()) {
throw new InternalError("Proxy is not supported until "
+ "module system is fully initialized");