mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
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:
parent
96bfe613c3
commit
bee50cd330
2 changed files with 349 additions and 409 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue