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

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

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 17
    • 17
    • core-svc
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: