"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "logback-core/src/main/java/ch/qos/logback/core/joran/event/SaxEventRecorder.java" between
logback-1.2.3.tar.gz and logback-v_1.2.7.tar.gz

About: Logback is a generic Logging Framework (intended as a log4j successor).

SaxEventRecorder.java  (logback-1.2.3):SaxEventRecorder.java  (logback-v_1.2.7)
skipping to change at line 81 skipping to change at line 81
private void handleError(String errMsg, Throwable t) throws JoranException { private void handleError(String errMsg, Throwable t) throws JoranException {
addError(errMsg, t); addError(errMsg, t);
throw new JoranException(errMsg, t); throw new JoranException(errMsg, t);
} }
private SAXParser buildSaxParser() throws JoranException { private SAXParser buildSaxParser() throws JoranException {
try { try {
SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParserFactory spf = SAXParserFactory.newInstance();
spf.setValidating(false); spf.setValidating(false);
//spf.setFeature("http://apache.org/xml/features/disallow-doctype-de
cl", true);
spf.setFeature("http://xml.org/sax/features/external-general-entitie
s", false);
spf.setFeature("http://xml.org/sax/features/external-parameter-entit
ies", false);
spf.setNamespaceAware(true); spf.setNamespaceAware(true);
return spf.newSAXParser(); return spf.newSAXParser();
} catch (Exception pce) { } catch (Exception pce) {
String errMsg = "Parser configuration error occurred"; String errMsg = "Parser configuration error occurred";
addError(errMsg, pce); addError(errMsg, pce);
throw new JoranException(errMsg, pce); throw new JoranException(errMsg, pce);
} }
} }
public void startDocument() { public void startDocument() {
 End of changes. 1 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)