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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 17
    • 17
    • core-svc
    • None

      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.

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

              Created:
              Updated:
              Resolved: