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
The test tries to load valid class with 65535 methods.
This test used to pass before fix of security bug#4169277.