Ignore:
Timestamp:
2018-05-08T12:37:26+02:00 (18 months ago)
Author:
Don-vip
Message:

see #16047 - implement workaround against problem seen with IcedTeaWeb 1.7.1 / Java 9 on Debian

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/preferences/PreferencesReader.java

    r12881 r13715  
    2727import javax.xml.transform.stream.StreamSource;
    2828import javax.xml.validation.Schema;
    29 import javax.xml.validation.SchemaFactory;
    3029import javax.xml.validation.Validator;
    3130
    3231import org.openstreetmap.josm.io.CachedFile;
    3332import org.openstreetmap.josm.io.XmlStreamParsingException;
    34 import org.openstreetmap.josm.spi.preferences.Setting;
    3533import org.openstreetmap.josm.spi.preferences.ListListSetting;
    3634import org.openstreetmap.josm.spi.preferences.ListSetting;
    3735import org.openstreetmap.josm.spi.preferences.MapListSetting;
     36import org.openstreetmap.josm.spi.preferences.Setting;
    3837import org.openstreetmap.josm.spi.preferences.StringSetting;
    3938import org.openstreetmap.josm.tools.Logging;
     39import org.openstreetmap.josm.tools.Utils;
    4040import org.xml.sax.SAXException;
    4141
     
    9797    public static void validateXML(Reader in) throws IOException, SAXException {
    9898        try (CachedFile cf = new CachedFile("resource://data/preferences.xsd"); InputStream xsdStream = cf.getInputStream()) {
    99             Schema schema = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(new StreamSource(xsdStream));
     99            Schema schema = Utils.newXmlSchemaFactory().newSchema(new StreamSource(xsdStream));
    100100            Validator validator = schema.newValidator();
    101101            validator.validate(new StreamSource(in));
Note: See TracChangeset for help on using the changeset viewer.