Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java Debug Interface DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.sun.jdi.ClassNotLoadedException
public class ClassNotLoadedException extends Exception
Thrown to indicate that the requested class has not yet been loaded through the appropriate class loader.
Due to the lazy class linking performed by many VMs, it is possible for a field or variable to be visible in a program before the associated class is loaded. Until the class is loaded all that is available is a signature string. If an attempt is made to set the value of such a field or variable from JDI, the appropriate type checking cannot be done because the destination class has not been loaded. The same is true for the element class of array elements.
It is not advisable to solve this problem by attempting a class load on the fly in this case. There are two problems in having the debugger load a class instead of waiting for it to load over the normal course of events.
Note that this exception will be thrown until the class in question
is visible to the class loader of enclosing class. (That is, the
class loader of the enclosing class must be an initiating class
loader for the class in question.)
See the
Constructor and Description |
---|
ClassNotLoadedException(String className)
|
ClassNotLoadedException(String className,
String message)
|
Modifier and Type | Method and Description |
---|---|
String |
className()
|
Methods inherited from class java.lang.Throwable |
---|
addSuppressedException, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressedExceptions, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClassNotLoadedException(String className)
public ClassNotLoadedException(String className, String message)
Method Detail |
---|
public String className()
|
Java Debug Interface DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999, 2010, Oracle Corporation. All rights reserved.