Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4173669

VM limits the number of methods to 64K.

    Details

    • Subcomponent:
    • CPU:
      x86, sparc
    • OS:
      linux, solaris_2.5.1

      Description



      Name: akC45999 Date: 09/15/98



      The section "4.10 Limitations of the Java Virtual Machine" of JVM spec says:

      The number of methods that may be declared by a class or
      interface is limited to 65535 by the size of the methods_count
      item of the ClassFile structure. Note that the value of the
      methods_count item of the ClassFile structure does not include
      methods that are inherited from superclasses or superinterfaces.

      However VM limits the number of all methods to 64K:
      if the number of class or interface and superclasses or superinterfaces
      methods is more than 64K, VM (JDK1.2fcsJ) throws
         java.lang.InternalError: exceed 64K method table size limit.

      To reproduce run JCK 1.2beta4 test
        vm/classfmt/lmt/mthnum001/mthnum00101m1/mthnum00101m1.html
      The test tries to load valid class with 65535 methods.

      This test used to pass before fix of security bug#4169277.

      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rfqsunw Rfq Rfq (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: