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

(props) Properties.loadFromXML/storeToXML should consistently use the UKit parser

    XMLWordPrintable

Details

    • b14

    Description


      In JDK 8, we introduced a JDK-internal service provider to allow the implementation of Properties.loadFromXML and storeToXML use alternative XML parsers.

      JDK 8 builds use a service provider implementation based on JAXP. Builds of the compact1 profile (which doesn't define any XML APIs) use the small UKit parser.

      This bug is submitted to continue this effort and to change Properties to consistently use the UKit parser. A concern when we originally brought in the UKit parser is that test coverage in this area was weak, and additionally the Properties specification wasn't clear on the encodings that the implementation is required to support. The Java SE API specification was clarified via JDK-8000685 to only require an implementation to support UTF-8 and UTF-16. Furthermore a lot of tests have been developed that improves our confidence about moving to the UKit parser.

      Attachments

        Issue Links

          Activity

            People

              alanb Alan Bateman
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: