Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8264124

Update MXBean specification and implementation to extend mapping of CompositeType to records

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: core-svc
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dfuchs Daniel Fuchs
              Reporter:
              dfuchs Daniel Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: