JDK-8245321 : refactor the redefine check that an attribute consisting of a list of classes has not changed
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-05-19
  • Updated: 2024-10-17
  • Resolved: 2020-06-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 15
15 b27Fixed
Related Reports
Relates :  
Description
After the Sealed classes are introduced the jvmtiRedefineClasses.cpp has three functions that check the same:
  check_nest_attributes
  check_record_attributes
  check_permitted_subclasses_attribute

We should refactor it to have just one implementation for this check.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/b06f452c8d61 User: sspitsyn Date: 2020-06-05 00:06:53 +0000
05-06-2020

The record attribute has a little bit different layout. It does not look it is worth trying to cover it in this refactoring. The suggested fix is: http://cr.openjdk.java.net/~sspitsyn/webrevs/2020/jvmti-redef-refact.1/
04-06-2020