RFR: 8016344 - (props) Properties.storeToXML behaviour has changed from JDK 6 to 7

Daniel Fuchs daniel.fuchs at oracle.com
Thu Oct 17 16:18:03 UTC 2013


Hi,

Please find below a fix for:

8016344: (props) Properties.storeToXML behaviour has changed from
          JDK 6 to 7

The code for storing properties to XML has changed significantly
between 7 & 8 - but the bug is still present in 8...

This is the fix for JDK 8.

By default Properties.storeToXML uses
sun.util.xml.PlatformXmlPropertiesProvider, and so the test
contains an explicit test for the alternate provider
(jdk.internal.util.xml.PropertiesDefaultHandler) which is only
used on profiles where the default provider is not available.

AFAICT the test should run on all 3 profiles.

<http://cr.openjdk.java.net/~dfuchs/webrev_8016344/webrev.00/>

best regards,

-- daniel



More information about the core-libs-dev mailing list