Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8303530 Redefine JAXP Configuration File
  3. JDK-8305195

Release Note: Changes to JAXP Configuration Files

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            joehw Joe Wang
            joehw Joe Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: