jdk/src/java.base/share/classes/java/lang/reflect/Proxy.java
changeset 41121 91734a3ed04b
parent 40459 88a91142b711
child 43712 5dfd0950317c
--- a/jdk/src/java.base/share/classes/java/lang/reflect/Proxy.java	Thu Sep 22 07:28:40 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/reflect/Proxy.java	Thu Sep 22 17:21:10 2016 +0100
@@ -597,10 +597,10 @@
         private final Module module;
         ProxyBuilder(ClassLoader loader, List<Class<?>> interfaces) {
             if (!VM.isModuleSystemInited()) {
-                throw new InternalError("Proxy is not supported until module system is fully initialzed");
+                throw new InternalError("Proxy is not supported until module system is fully initialized");
             }
             if (interfaces.size() > 65535) {
-                throw new IllegalArgumentException("interface limit exceeded");
+                throw new IllegalArgumentException("interface limit exceeded: " + interfaces.size());
             }
 
             Set<Class<?>> refTypes = referencedTypes(loader, interfaces);