Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 301
نمايش فراداده

UnmodifiableClassExceptionjava.lang.instrument

Java 5.0serializable checked

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.

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

public class

UnmodifiableClassException extends Exception { // Public Constructors public

UnmodifiableClassException ( ); public

UnmodifiableClassException (String

s ); }

Thrown By

Instrumentation.redefineClasses( )