OpenJDK / jdk / jdk
changeset 57244:0a94d3675782
8235360: Update JDWP, JDI and Instrumentation specs for Record attribute
Summary: Add Record to list of attributes that class redefinition cannot change
Reviewed-by: lfoltan
author | hseigel |
---|---|
date | Thu, 05 Dec 2019 15:45:58 +0000 |
parents | 2ca0201e99f3 |
children | 9f9e7c969f78 |
files | make/data/jdwp/jdwp.spec src/java.instrument/share/classes/java/lang/instrument/Instrumentation.java src/jdk.jdi/share/classes/com/sun/jdi/VirtualMachine.java |
diffstat | 3 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/make/data/jdwp/jdwp.spec Thu Dec 05 09:22:21 2019 -0400 +++ b/make/data/jdwp/jdwp.spec Thu Dec 05 15:45:58 2019 +0000 @@ -468,7 +468,7 @@ "<li>deleting a method</li>" "<li>changing class modifiers</li>" "<li>changing method modifiers</li>" - "<li>changing the <code>NestHost</code> or <code>NestMembers</code> class attributes</li>" + "<li>changing the <code>NestHost</code>, <code>NestMembers</code>, or <code>Record</code> class attributes</li>" "</ul>" "<p>" "Requires canRedefineClasses capability - see " @@ -3167,8 +3167,8 @@ "than its counterpart in the old class version and " "canUnrestrictedlyRedefineClasses is false.") (Constant CLASS_ATTRIBUTE_CHANGE_NOT_IMPLEMENTED - =72 "The new class version has different NestHost or " - "NestMembers class attribute and " + =72 "The new class version has a different NestHost, " + "NestMembers, or Record class attribute and " "canUnrestrictedlyRedefineClasses is false.") (Constant NOT_IMPLEMENTED =99 "The functionality is not implemented in " "this virtual machine.")
--- a/src/java.instrument/share/classes/java/lang/instrument/Instrumentation.java Thu Dec 05 09:22:21 2019 -0400 +++ b/src/java.instrument/share/classes/java/lang/instrument/Instrumentation.java Thu Dec 05 15:45:58 2019 +0000 @@ -226,8 +226,8 @@ * 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 <code>NestHost</code> or - * <code>NestMembers</code> attributes. + * The retransformation must not change the <code>NestHost</code>, + * <code>NestMembers</code>, or <code>Record</code> attributes. * These restrictions may be lifted in future versions. * The class file bytes are not checked, verified and installed * until after the transformations have been applied, if the resultant bytes are in @@ -317,8 +317,8 @@ * (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 <code>NestHost</code> or - * <code>NestMembers</code> attributes. + * The redefinition must not change the <code>NestHost</code>, + * <code>NestMembers</code>, or <code>Record</code> attributes. * These restrictions may be lifted in future versions. * The class file bytes are not checked, verified and installed * until after the transformations have been applied, if the resultant bytes are in
--- a/src/jdk.jdi/share/classes/com/sun/jdi/VirtualMachine.java Thu Dec 05 09:22:21 2019 -0400 +++ b/src/jdk.jdi/share/classes/com/sun/jdi/VirtualMachine.java Thu Dec 05 15:45:58 2019 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -223,7 +223,7 @@ * <LI>deleting a method * <LI>changing class modifiers * <LI>changing method modifiers - * <LI>changing the {@code NestHost} or {@code NestMembers} class attributes + * <LI>changing the {@code NestHost}, {@code NestMembers}, or {@code Record} class attributes * </UL> * </UL> *