IncompatibleClassChangeError (Java SE 25 & JDK 25)
Description: declaration: module: java.base, package: java.lang, class: IncompatibleClassChangeError
Keywords: java.lang.IncompatibleClassChangeError class

# Class IncompatibleClassChangeError

java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.LinkageError
java.lang.IncompatibleClassChangeError

All Implemented Interfaces:
  `Serializable`

Direct Known Subclasses:
  `AbstractMethodError, IllegalAccessError, InstantiationError, NoSuchFieldError, NoSuchMethodError`

public class IncompatibleClassChangeError extends LinkageError
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.

Since:
  1.0
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `IncompatibleClassChangeError()`
  Constructs an `IncompatibleClassChangeError` with no detail message.
  `IncompatibleClassChangeError(String s)`
  Constructs an `IncompatibleClassChangeError` with the specified detail message.

- ## Method Summary

  ### Methods declared in class Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods declared in class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### IncompatibleClassChangeError

    public IncompatibleClassChangeError()
    Constructs an `IncompatibleClassChangeError` with no detail message.

  - ### IncompatibleClassChangeError

    public IncompatibleClassChangeError(String s)
    Constructs an `IncompatibleClassChangeError` with the specified detail message.
    Parameters:
      `s` - the detail message.