Skip to content

Commit bee50cd

Browse files
committed
8294961: Convert java.base/java.lang.reflect.ProxyGenerator to use the Classfile API to generate proxy classes
Reviewed-by: mchung
1 parent 96bfe61 commit bee50cd

File tree

2 files changed

+354
-414
lines changed

2 files changed

+354
-414
lines changed

src/java.base/share/classes/java/lang/reflect/Proxy.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ private static boolean isDebug(String flag) {
618618
private final List<Class<?>> interfaces;
619619
private final ProxyClassContext context;
620620
ProxyBuilder(ClassLoader loader, List<Class<?>> interfaces) {
621+
Objects.requireNonNull(interfaces);
621622
if (!VM.isModuleSystemInited()) {
622623
throw new InternalError("Proxy is not supported until "
623624
+ "module system is fully initialized");

0 commit comments

Comments
 (0)