JDK-8287484 : JFR: Seal RecordedObject
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: jfr
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-05-27
  • Updated: 2022-05-31
  • Resolved: 2022-05-29
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 19
19 masterFixed
Related Reports
Relates :  
Description
The RecordedObject class is not meant to be subclasses outside the jdk.jfr.consumer package. Today it is prevented by a package private constructor. It would be good to make it explicit by making the class sealed.
Comments
Changeset: 36350bf1 Author: Erik Gahlin <egahlin@openjdk.org> Date: 2022-05-29 13:56:33 +0000 URL: https://git.openjdk.java.net/jdk/commit/36350bf1be1ae3c5b58cc7c7ca95acd9bfa26949
29-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8930 Date: 2022-05-27 19:44:23 +0000
28-05-2022