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

Print this page

        

*** 348,358 **** { if (interfaces.length > 65535) { throw new IllegalArgumentException("interface limit exceeded"); } ! Class proxyClass = null; /* collect interface names to use as key for proxy class cache */ String[] interfaceNames = new String[interfaces.length]; // for detecting duplicates --- 348,358 ---- { if (interfaces.length > 65535) { throw new IllegalArgumentException("interface limit exceeded"); } ! Class<?> proxyClass = null; /* collect interface names to use as key for proxy class cache */ String[] interfaceNames = new String[interfaces.length]; // for detecting duplicates
*** 362,372 **** /* * Verify that the class loader resolves the name of this * interface to the same Class object. */ String interfaceName = interfaces[i].getName(); ! Class interfaceClass = null; try { interfaceClass = Class.forName(interfaceName, false, loader); } catch (ClassNotFoundException e) { } if (interfaceClass != interfaces[i]) { --- 362,372 ---- /* * Verify that the class loader resolves the name of this * interface to the same Class object. */ String interfaceName = interfaces[i].getName(); ! Class<?> interfaceClass = null; try { interfaceClass = Class.forName(interfaceName, false, loader); } catch (ClassNotFoundException e) { } if (interfaceClass != interfaces[i]) {