RFR: 8347433: Deprecate XML interchange in java.management/javax/management/modelmbean/DescriptorSupport for removal [v2]

Serguei Spitsyn sspitsyn at openjdk.org
Fri Feb 21 06:38:56 UTC 2025


On Thu, 13 Feb 2025 12:30:32 GMT, Kevin Walls <kevinw at openjdk.org> wrote:

>> 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.
>
> Kevin Walls has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains eight additional commits since the last revision:
> 
>  - comments
>  - Merge remote-tracking branch 'upstream/master' into 8347433_DescriptorSupport_deprecate_XML
>  - (c)
>  - typo
>  - Merge remote-tracking branch 'upstream/master' into 8347433_DescriptorSupport_deprecate_XML
>  - Also XMLParseException
>  - RMMB comment update
>  - Deprecate XML interchange in DescriptorSupport

src/java.management/share/classes/javax/management/modelmbean/DescriptorSupport.java line 1170:

> 1168:                 " with arg: <" + s + ">";
> 1169:             throw new XMLParseException(e, msg);
> 1170:             // XMLParseException is deprecated for removal.

Q: Non-deprecated method will be using the deprecated class `XMLParseException`. What is the plan for replacement? Should this be fixed now? The same question for the line 1160.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/23038#discussion_r1964928958


More information about the serviceability-dev mailing list