-
Enhancement
-
Resolution: Fixed
-
P4
-
25
-
b14
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.
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.
- csr for
-
JDK-8347436 Deprecate XML interchange in java.management/javax/management/modelmbean/DescriptorSupport for removal
-
- Closed
-
- relates to
-
JDK-8351413 Remove XML interchange in java.management/javax/management/modelmbean/DescriptorSupport
-
- Open
-
- links to
-
Commit(master) openjdk/jdk/54fe643e
-
Review(master) openjdk/jdk/23038