Author: markt Date: Tue Aug 22 15:24:41 2017 New Revision: 1805778 URL: http://svn.apache.org/viewvc?rev=1805778&view=rev Log: Use newInstance() rather than newFactory(). The behaviour is identical and there are a couple of reasons to avoid newFactory() - it is deprecated in Java 9 onwards - it isn't present in Xerces so users over-riding the JRE XML implementation with Xerces will see NoSuchMethodError when they try to process JSPs (seen via $work)
Modified: tomcat/tc8.5.x/trunk/java/org/apache/jasper/compiler/EncodingDetector.java Modified: tomcat/tc8.5.x/trunk/java/org/apache/jasper/compiler/EncodingDetector.java URL: http://svn.apache.org/viewvc/tomcat/tc8.5.x/trunk/java/org/apache/jasper/compiler/EncodingDetector.java?rev=1805778&r1=1805777&r2=1805778&view=diff ============================================================================== --- tomcat/tc8.5.x/trunk/java/org/apache/jasper/compiler/EncodingDetector.java (original) +++ tomcat/tc8.5.x/trunk/java/org/apache/jasper/compiler/EncodingDetector.java Tue Aug 22 15:24:41 2017 @@ -35,7 +35,7 @@ class EncodingDetector { private static final XMLInputFactory XML_INPUT_FACTORY; static { - XML_INPUT_FACTORY = XMLInputFactory.newFactory(); + XML_INPUT_FACTORY = XMLInputFactory.newInstance(); } private final String encoding; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org