diff --git a/make/data/jdwp/jdwp.spec b/make/data/jdwp/jdwp.spec index a3377b61a09..48d1aab3c15 100644 --- a/make/data/jdwp/jdwp.spec +++ b/make/data/jdwp/jdwp.spec @@ -461,16 +461,9 @@ JDWP "Java(tm) Debug Wire Protocol" "PopFrames command can be used " "to pop frames with obsolete methods." "
" - "Unless the canUnrestrictedlyRedefineClasses capability is present the following " - "redefinitions are restricted: " - "
NestHost
, NestMembers
, or Record
class attributes" "Requires canRedefineClasses capability - see " "CapabilitiesNew. " diff --git a/src/java.instrument/share/classes/java/lang/instrument/Instrumentation.java b/src/java.instrument/share/classes/java/lang/instrument/Instrumentation.java index 8bd4163726c..06a5bc6bc7a 100644 --- a/src/java.instrument/share/classes/java/lang/instrument/Instrumentation.java +++ b/src/java.instrument/share/classes/java/lang/instrument/Instrumentation.java @@ -222,13 +222,8 @@ public interface Instrumentation { * Instances of the retransformed class are not affected. * *
- * The retransformation may change method bodies, the constant pool and
- * attributes (unless explicitly prohibited).
- * The retransformation must not add, remove or rename fields or methods, change the
- * signatures of methods, or change inheritance.
- * The retransformation must not change the NestHost
,
- * NestMembers
, or Record
attributes.
- * These restrictions may be lifted in future versions.
+ * The supported class file changes are described in
+ * JVM TI RetransformClasses.
* The class file bytes are not checked, verified and installed
* until after the transformations have been applied, if the resultant bytes are in
* error this method will throw an exception.
@@ -313,13 +308,8 @@ public interface Instrumentation {
* Instances of the redefined class are not affected.
*
*
- * The redefinition may change method bodies, the constant pool and attributes
- * (unless explicitly prohibited).
- * The redefinition must not add, remove or rename fields or methods, change the
- * signatures of methods, or change inheritance.
- * The redefinition must not change the NestHost
,
- * NestMembers
, or Record
attributes.
- * These restrictions may be lifted in future versions.
+ * The supported class file changes are described in
+ * JVM TI RedefineClasses.
* The class file bytes are not checked, verified and installed
* until after the transformations have been applied, if the resultant bytes are in
* error this method will throw an exception.
diff --git a/src/jdk.jdi/share/classes/com/sun/jdi/VirtualMachine.java b/src/jdk.jdi/share/classes/com/sun/jdi/VirtualMachine.java
index 64281c70f34..21a77ce9a70 100644
--- a/src/jdk.jdi/share/classes/com/sun/jdi/VirtualMachine.java
+++ b/src/jdk.jdi/share/classes/com/sun/jdi/VirtualMachine.java
@@ -214,17 +214,9 @@ public interface VirtualMachine extends Mirror {
* attempting to add a method will throw this exception.
*