-
CSR
-
Resolution: Approved
-
P4
-
None
-
behavioral
-
minimal
-
New class file attribute `Record` has been added to the JVMS. It can not be changed by a class redefinition or a retransformation. Clarifying it in the JDI, JDWP and Instrumentation specs should not break any of the existing tools.
-
Java API, File or wire format
Summary
Add a clarification to the JDI, JDWP and Instrumentation specs that newly introduced class file attribute Record can not be changed in a class redefinition or retransformation.
Problem
Changing new class file attribute Record must be disallowed in class redefinition or retransformation.
Solution
We have to add necessary clarifications to the JDWP, JDI and Instrumentation specs.
Specification
I. The following changes are needed in the JDWP spec:
In description of
VirtualMachine::RedefineClassescommand replace:changing the NestHost or NestMembers class attributeswith:
changing the NestHost, NestMembers, or Record class attributesIn the section
Error Constants, description ofCLASS_ATTRIBUTE_CHANGE_NOT_IMPLEMENTEDreplace:The new class version has a different NestHost or NestMembers class attributewith:
The new class version has a different NestHost, NestMembers, or Record class attribute
II. The following changes are needed in the JDI VirtualMachine::redefineClasses method spec:
In the section
Throwsreplace:changing the NestHost or NestMembers class attributeswith:
changing the NestHost, NestMembers, or Record class attributes
III. The following changes are needed in the Instrumentation specs:
In the methods
redefineClassesandretransformClassesdescription replace:must not change the NestHost or NestMembers attributes.with:
must not change the NestHost, NestMembers, or Record class attributes.
- csr of
-
JDK-8235360 Update JDWP, JDI and Instrumentation specs for Record attribute
-
- Resolved
-