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