JDK-8264124 : Update MXBean specification and implementation to extend mapping of CompositeType to records
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-03-24
  • Updated: 2021-04-19
  • Resolved: 2021-04-12
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 17
17 b18Fixed
Related Reports
CSR :  
Relates :  
Description
The MXBean framework could be extended to define a mapping to records.

The MXBean framework defines a mapping of CompositeType to plain java objects. Records are a natural representation of such CompositeTypes. A record can be easily reconstructed from a CompositeData through the record canonical constructor. A clear  advantage of records over plain java objects is that the canonical constructor will not need to be annotated in order to map composite data property names to constructor parameter names.


Comments
Changeset: d84a7e55 Author: Daniel Fuchs <dfuchs@openjdk.org> Date: 2021-04-12 16:31:36 +0000 URL: https://git.openjdk.java.net/jdk/commit/d84a7e55
12-04-2021