#

| Chapter 12 The java.lang Package |

# IncompatibleClassChangeError

## Name

IncompatibleClassChangeError

## Synopsis

Class Name:

  `java.lang.IncompatibleClassChangeError`

Superclass:

  `java.lang.LinkageError`

Immediate Subclasses:

  `java.lang.AbstractMethodError`,

  `java.lang.IllegalAccessError`,

  `java.lang.InstantiationError`,

  `java.lang.NoSuchFieldError`,

  `java.lang.NoSuchMethodError`

Interfaces Implemented:

  None

Availability:

  JDK 1.0 or later

## Description

An `IncompatibleClassChangeError` or one of its subclasses is thrown when a class refers to another class in an incompatible way. This situation occurs when the current definition of the referenced class is incompatible with the definition of the class that was found when the referring class was compiled. For example, say class `A` refers to a method in class `B`. Then, after class `A` is compiled, the method is removed from class `B`. When class `A` is loaded, the run-time system discovers that the method in class `B` no longer exists and throws an error.

## Class Summary

    public class java.lang.IncompatibleClassChangeError
                 extends java.lang.LinkageError {
      // Constructors
      public IncompatibleClassChangeError();
      public IncompatibleClassChangeError(String s);
    }

## Constructors

### IncompatibleClassChangeError

#### public IncompatibleClassChangeError()

Description

  This constructor creates an `IncompatibleClassChangeError` with no associated detail message.

#### public IncompatibleClassChangeError(String s)

Parameters

  `s`

    The detail message.

Description

  This constructor creates an `IncompatibleClassChangeError` with the specified detail message.

## Inherited Methods

Method | Inherited From | Method | Inherited From
--- | --- | --- | ---
`clone()` | `Object` | `equals(Object)` | `Object`
`fillInStackTrace()` | `Throwable` | `finalize()` | `Object`
`getClass()` | `Object` | `getLocalizedMessage()` | `Throwable`
`getMessage()` | `Throwable` | `hashCode()` | `Object`
`notify()` | `Object` | `notifyAll()` | `Object`
`printStackTrace()` | `Throwable` | `printStackTrace(PrintStream)` | `Throwable`
`printStackTrace(PrintWriter)` | `Throwable` | `toString()` | `Object`
`wait()` | `Object` | `wait(long)` | `Object`
`wait(long, int)` | `Object` |  |

## See Also

`AbstractMethodError`, `Error`, `IllegalAccessError`, `InstantiationError`, `LinkageError`, `NoSuchFieldError`, `NoSuchMethodError`, `Throwable`

IllegalThreadStateException |  | IndexOutOfBoundsException