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

Deprecate XML interchange in java.management/javax/management/modelmbean/DescriptorSupport for removal

XMLWordPrintable

      DescriptorSupport has a constructor and a method providing creation from, and export to, XML.

      These are unused in the JDK and have no practical known examples of usage. XML parsing is best done by an independent implementation, not this class.

      DescriptorSupport as it stands does not guarantee XML interchange, the toXMLString() method notes: "The format is not defined, but an implementation must ensure that the string returned by this method can be used to build an equivalent descriptor"

      Comments in historical JCP documents [0] suggest XML interchange was not intended to be part of the specification, but was: "part of this implementation and not required by the JMX Specification".

      There is a related class javax.management.modelmbean.XMLParseException (distinct from XMLParseException.java in module java.xml) which should also be deprecated for removal.


      [0] https://jcp.org/aboutJava/communityprocess/maintenance/jsr003/jmx1.2-change-log.txt
      A.22.10. Require XML support in DescriptorSupport.

            kevinw Kevin Walls
            kevinw Kevin Walls
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: