-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.2.0, 1.3.0
-
x86, sparc
-
linux, solaris_2.5.1
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.
======================================================================
- relates to
-
JDK-4171361 VM limits the size of object to 64K bytes.
- Closed