JDK-8305195 : Release Note: Changes to JAXP Configuration Files
  • Type: Sub-task
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2023-03-29
  • Updated: 2023-09-01
  • Resolved: 2023-06-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21
21Resolved
Description
The following changes have been made with regard to the JAXP configuration files:

- Added the `jaxp.properties` file to the JDK at `$JAVA_HOME/conf/jaxp.properties` as the default JAXP configuration file. Property settings in the file reflect the current, built-in defaults for the JDK. 

- Added a new System Property, `java.xml.config.file`, for specifying the location of a custom configuration file. If it is set and the named file exists, the property settings contained in the file override those in the default JAXP configuration file. For more details, see the <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.xml/module-summary.html#Conf">Configuration</a> section of the module specification.

- Deprecated the `stax.properties` file that was defined in the StAX API and used by the StAX factories. It had been made redundant after StAX's integration into JAXP since the function has been fully covered by the JAXP configuration file. It is recommended that applications migrate to the JAXP configuration file as the `stax.properties` file is deprecated and may no longer be supported in the future. 
Comments
Reviewed by: Lance and Stuart. Thanks!
17-06-2023