IncompatibleClassChangeError

  • IncompatibleClassChangeError signals an incompatible change in a class definition that the current method depends on.

  • This error is a subclass of LinkageError and has several direct subclasses like AbstractMethodError and NoSuchFieldError which address specific incompatibility issues.

  • It's thrown when the definition of a class has been altered after compilation, leading to conflicts during runtime.

  • Two constructors are available: one with no detail message and another accepting a custom message describing the error.

public class IncompatibleClassChangeError extends LinkageError
Known Direct Subclasses

Thrown when an incompatible class change has occurred to some class definition. The definition of some class, on which the currently executing method depends, has since changed.

Public Constructor Summary

IncompatibleClassChangeError()
Constructs an IncompatibleClassChangeError with no detail message.
IncompatibleClassChangeError(String s)
Constructs an IncompatibleClassChangeError with the specified detail message.

Inherited Method Summary

Public Constructors

public IncompatibleClassChangeError ()

Constructs an IncompatibleClassChangeError with no detail message.

public IncompatibleClassChangeError (String s)

Constructs an IncompatibleClassChangeError with the specified detail message.

Parameters
s the detail message.