Class ClassTooLargeException

All Implemented Interfaces:
Serializable

public final class ClassTooLargeException extends IndexOutOfBoundsException
Exception thrown when the constant pool of a class produced by a ClassWriter is too large.
See Also:
  • Constructor Details

    • ClassTooLargeException

      public ClassTooLargeException(String className, int constantPoolCount)
      Constructs a new ClassTooLargeException.
      Parameters:
      className - the internal name of the class (see Type.getInternalName()).
      constantPoolCount - the number of constant pool items of the class.
  • Method Details

    • getClassName

      public String getClassName()
      Returns the internal name of the class (see Type.getInternalName()).
      Returns:
      the internal name of the class.
    • getConstantPoolCount

      public int getConstantPoolCount()
      Returns the number of constant pool items of the class.
      Returns:
      the number of constant pool items of the class.