< prev index next >

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

Print this page
*** 451,10 ***
--- 451,16 ---
      }
  
      /**
       * Generate a class file for the proxy class.  This method drives the
       * class file generation process.
+      *
+      * If a proxy interface references any value classes, the value classes
+      * are listed in the loadable descriptors attribute of the interface class.  The
+      * classes that are referenced by the proxy interface have already
+      * been loaded before the proxy class.  Hence the proxy class is
+      * generated with no loadable descriptors attributes as it essentially has no effect.
       */
      private byte[] generateClassFile() {
          visit(CLASSFILE_VERSION, accessFlags, dotToSlash(className), null,
                  JLR_PROXY, typeNames(interfaces));
  
< prev index next >