Name

UnmodifiableClassException

Synopsis

An exception of this type is thrown from Instrumentation.redefineClasses( ) if a requested redefinition cannot be performed. This might occur, for example, if the redefinition attempts to add or remove members from the class.

java.lang.instrument.UnmodifiableClassException

Figure 10-84. java.lang.instrument.UnmodifiableClassException

public class UnmodifiableClassException extends Exception {
// Public Constructors
     public UnmodifiableClassException( );  
     public UnmodifiableClassException(String s);  
}

Thrown By

Instrumentation.redefineClasses( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.