-
Enhancement
-
Resolution: Fixed
-
P3
-
17
-
None
-
b18
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.
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.
- csr for
-
JDK-8264289 Update MXBean specification and implementation to extend mapping of CompositeType to records
-
- Closed
-
- relates to
-
JDK-8246771 JEP 395: Records
-
- Closed
-