< prev index next >

make/data/jdwp/jdwp.spec

Print this page




 451         "Installs new class definitions. "
 452         "If there are active stack frames in methods of the redefined classes in the "
 453         "target VM then those active frames continue to run the bytecodes of the "
 454         "original method. These methods are considered obsolete - see "
 455         "<a href=\"#JDWP_Method_IsObsolete\">IsObsolete</a>. The methods in the "
 456         "redefined classes will be used for new invokes in the target VM. "
 457         "The original method ID refers to the redefined method. "
 458         "All breakpoints in the redefined classes are cleared."
 459         "If resetting of stack frames is desired, the "
 460         "<a href=\"#JDWP_StackFrame_PopFrames\">PopFrames</a> command can be used "
 461         "to pop frames with obsolete methods."
 462         "<p>"
 463         "Unless the canUnrestrictedlyRedefineClasses capability is present the following "
 464         "redefinitions are restricted: "
 465         "<ul>"
 466         "<li>changing the schema (the fields)</li>"
 467         "<li>changing the hierarchy (superclasses, interfaces)</li>"
 468         "<li>deleting a method</li>"
 469         "<li>changing class modifiers</li>"
 470         "<li>changing method modifiers</li>"
 471         "<li>changing the <code>NestHost</code> or <code>NestMembers</code> class attributes</li>"
 472         "</ul>"
 473         "<p>"
 474         "Requires canRedefineClasses capability - see "
 475         "<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>. "
 476         "In addition to the canRedefineClasses capability, the target VM must "
 477         "have the canAddMethod capability to add methods when redefining classes, "
 478         "or the canUnrestrictedlyRedefineClasses capability to redefine classes in ways "
 479         "that are normally restricted."
 480         (Out
 481             (Repeat classes "Number of reference types that follow."
 482                 (Group ClassDef
 483                     (referenceType refType "The reference type.")
 484                     (Repeat classfile "Number of bytes defining class (below)"
 485                          (byte classbyte "byte in JVM class file "
 486                                          "format.")
 487                     )
 488                 )
 489             )
 490         )
 491         (Reply


3150                                           "version, or the set of directly implemented "
3151                                           "interfaces is different "
3152                                           "and canUnrestrictedlyRedefineClasses is false.")
3153     (Constant DELETE_METHOD_NOT_IMPLEMENTED
3154                                      =67  "The new class version does not declare a method "
3155                                           "declared in the old class version "
3156                                           "and canUnrestrictedlyRedefineClasses is false.")
3157     (Constant UNSUPPORTED_VERSION    =68  "A class file has a version number not supported "
3158                                           "by this VM.")
3159     (Constant NAMES_DONT_MATCH       =69  "The class name defined in the new class file is "
3160                                           "different from the name in the old class object.")
3161     (Constant CLASS_MODIFIERS_CHANGE_NOT_IMPLEMENTED
3162                                      =70  "The new class version has different modifiers and "
3163                                           "canUnrestrictedlyRedefineClasses is false.")
3164     (Constant METHOD_MODIFIERS_CHANGE_NOT_IMPLEMENTED
3165                                      =71  "A method in the new class version has "
3166                                           "different modifiers "
3167                                           "than its counterpart in the old class version and "
3168                                           "canUnrestrictedlyRedefineClasses is false.")
3169     (Constant CLASS_ATTRIBUTE_CHANGE_NOT_IMPLEMENTED
3170                                      =72  "The new class version has different NestHost or "
3171                                           "NestMembers class attribute and "
3172                                           "canUnrestrictedlyRedefineClasses is false.")
3173     (Constant NOT_IMPLEMENTED        =99  "The functionality is not implemented in "
3174                                           "this virtual machine.")
3175     (Constant NULL_POINTER           =100 "Invalid pointer.")
3176     (Constant ABSENT_INFORMATION     =101 "Desired information is not available.")
3177     (Constant INVALID_EVENT_TYPE     =102 "The specified event type id is not recognized.")
3178     (Constant ILLEGAL_ARGUMENT       =103 "Illegal argument.")
3179     (Constant OUT_OF_MEMORY          =110 "The function needed to allocate memory and "
3180                                           "no more memory was available for allocation.")
3181     (Constant ACCESS_DENIED          =111 "Debugging has not been enabled in this "
3182                                           "virtual machine. JVMTI cannot be used.")
3183     (Constant VM_DEAD                =112 "The virtual machine is not running.")
3184     (Constant INTERNAL               =113 "An unexpected internal error has occurred.")
3185     (Constant UNATTACHED_THREAD      =115 "The thread being used to call this function "
3186                                           "is not attached to the virtual machine. "
3187                                           "Calls must be made from attached threads.")
3188     (Constant INVALID_TAG            =500 "object type id or class tag.")
3189     (Constant ALREADY_INVOKING       =502 "Previous invoke not complete.")
3190     (Constant INVALID_INDEX          =503 "Index is invalid.")
3191     (Constant INVALID_LENGTH         =504 "The length is invalid.")




 451         "Installs new class definitions. "
 452         "If there are active stack frames in methods of the redefined classes in the "
 453         "target VM then those active frames continue to run the bytecodes of the "
 454         "original method. These methods are considered obsolete - see "
 455         "<a href=\"#JDWP_Method_IsObsolete\">IsObsolete</a>. The methods in the "
 456         "redefined classes will be used for new invokes in the target VM. "
 457         "The original method ID refers to the redefined method. "
 458         "All breakpoints in the redefined classes are cleared."
 459         "If resetting of stack frames is desired, the "
 460         "<a href=\"#JDWP_StackFrame_PopFrames\">PopFrames</a> command can be used "
 461         "to pop frames with obsolete methods."
 462         "<p>"
 463         "Unless the canUnrestrictedlyRedefineClasses capability is present the following "
 464         "redefinitions are restricted: "
 465         "<ul>"
 466         "<li>changing the schema (the fields)</li>"
 467         "<li>changing the hierarchy (superclasses, interfaces)</li>"
 468         "<li>deleting a method</li>"
 469         "<li>changing class modifiers</li>"
 470         "<li>changing method modifiers</li>"
 471         "<li>changing the <code>NestHost</code>, <code>NestMembers</code>, or <code>Record</code> class attributes</li>"
 472         "</ul>"
 473         "<p>"
 474         "Requires canRedefineClasses capability - see "
 475         "<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>. "
 476         "In addition to the canRedefineClasses capability, the target VM must "
 477         "have the canAddMethod capability to add methods when redefining classes, "
 478         "or the canUnrestrictedlyRedefineClasses capability to redefine classes in ways "
 479         "that are normally restricted."
 480         (Out
 481             (Repeat classes "Number of reference types that follow."
 482                 (Group ClassDef
 483                     (referenceType refType "The reference type.")
 484                     (Repeat classfile "Number of bytes defining class (below)"
 485                          (byte classbyte "byte in JVM class file "
 486                                          "format.")
 487                     )
 488                 )
 489             )
 490         )
 491         (Reply


3150                                           "version, or the set of directly implemented "
3151                                           "interfaces is different "
3152                                           "and canUnrestrictedlyRedefineClasses is false.")
3153     (Constant DELETE_METHOD_NOT_IMPLEMENTED
3154                                      =67  "The new class version does not declare a method "
3155                                           "declared in the old class version "
3156                                           "and canUnrestrictedlyRedefineClasses is false.")
3157     (Constant UNSUPPORTED_VERSION    =68  "A class file has a version number not supported "
3158                                           "by this VM.")
3159     (Constant NAMES_DONT_MATCH       =69  "The class name defined in the new class file is "
3160                                           "different from the name in the old class object.")
3161     (Constant CLASS_MODIFIERS_CHANGE_NOT_IMPLEMENTED
3162                                      =70  "The new class version has different modifiers and "
3163                                           "canUnrestrictedlyRedefineClasses is false.")
3164     (Constant METHOD_MODIFIERS_CHANGE_NOT_IMPLEMENTED
3165                                      =71  "A method in the new class version has "
3166                                           "different modifiers "
3167                                           "than its counterpart in the old class version and "
3168                                           "canUnrestrictedlyRedefineClasses is false.")
3169     (Constant CLASS_ATTRIBUTE_CHANGE_NOT_IMPLEMENTED
3170                                      =72  "The new class version has a different NestHost, "
3171                                           "NestMembers, or Record class attribute and "
3172                                           "canUnrestrictedlyRedefineClasses is false.")
3173     (Constant NOT_IMPLEMENTED        =99  "The functionality is not implemented in "
3174                                           "this virtual machine.")
3175     (Constant NULL_POINTER           =100 "Invalid pointer.")
3176     (Constant ABSENT_INFORMATION     =101 "Desired information is not available.")
3177     (Constant INVALID_EVENT_TYPE     =102 "The specified event type id is not recognized.")
3178     (Constant ILLEGAL_ARGUMENT       =103 "Illegal argument.")
3179     (Constant OUT_OF_MEMORY          =110 "The function needed to allocate memory and "
3180                                           "no more memory was available for allocation.")
3181     (Constant ACCESS_DENIED          =111 "Debugging has not been enabled in this "
3182                                           "virtual machine. JVMTI cannot be used.")
3183     (Constant VM_DEAD                =112 "The virtual machine is not running.")
3184     (Constant INTERNAL               =113 "An unexpected internal error has occurred.")
3185     (Constant UNATTACHED_THREAD      =115 "The thread being used to call this function "
3186                                           "is not attached to the virtual machine. "
3187                                           "Calls must be made from attached threads.")
3188     (Constant INVALID_TAG            =500 "object type id or class tag.")
3189     (Constant ALREADY_INVOKING       =502 "Previous invoke not complete.")
3190     (Constant INVALID_INDEX          =503 "Index is invalid.")
3191     (Constant INVALID_LENGTH         =504 "The length is invalid.")


< prev index next >