--- old/src/java.instrument/share/classes/java/lang/instrument/Instrumentation.java 2020-05-22 18:48:38.497308803 +0000 +++ new/src/java.instrument/share/classes/java/lang/instrument/Instrumentation.java 2020-05-22 18:48:38.155301418 +0000 @@ -222,13 +222,8 @@ * 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 @@ * 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.