details: https://code.openbravo.com/erp/devel/pi/rev/6524aa2ee769 changeset: 35710:6524aa2ee769 user: Carlos Aristu <carlos.aristu <at> openbravo.com> date: Thu May 02 16:04:44 2019 +0200 summary: related to issue 40642: do not use constants
Replace constants with their own value in order to avoid problems related with library collisions. This can happens when certain versions of the XML APIs[1] library are present in the classpath [1] https://mvnrepository.com/artifact/xml-apis/xml-apis diffstat: src/org/openbravo/dal/xml/XMLUtil.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diffs (25 lines): diff -r 5ca65fe55092 -r 6524aa2ee769 src/org/openbravo/dal/xml/XMLUtil.java --- a/src/org/openbravo/dal/xml/XMLUtil.java Tue Apr 30 12:18:41 2019 +0200 +++ b/src/org/openbravo/dal/xml/XMLUtil.java Thu May 02 16:04:44 2019 +0200 @@ -87,8 +87,8 @@ /** @return a new secure {@link TransformerHandler} */ public TransformerHandler newSAXTransformerHandler() throws TransformerConfigurationException { final SAXTransformerFactory tf = (SAXTransformerFactory) SAXTransformerFactory.newInstance(); - tf.setAttribute(javax.xml.XMLConstants.ACCESS_EXTERNAL_DTD, ""); - tf.setAttribute(javax.xml.XMLConstants.ACCESS_EXTERNAL_STYLESHEET, ""); + tf.setAttribute("http://javax.xml.XMLConstants/property/accessExternalDTD", ""); + tf.setAttribute("http://javax.xml.XMLConstants/property/accessExternalStylesheet", ""); return tf.newTransformerHandler(); } @@ -105,8 +105,8 @@ /** @return a new secure {@link TransformerFactory} */ public TransformerFactory newTransformerFactory() { TransformerFactory factory = TransformerFactory.newInstance(); - factory.setAttribute(javax.xml.XMLConstants.ACCESS_EXTERNAL_DTD, ""); - factory.setAttribute(javax.xml.XMLConstants.ACCESS_EXTERNAL_STYLESHEET, ""); + factory.setAttribute("http://javax.xml.XMLConstants/property/accessExternalDTD", ""); + factory.setAttribute("http://javax.xml.XMLConstants/property/accessExternalStylesheet", ""); return factory; } _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits