Procházet zdrojové kódy

Swap Exception for Throwable, to skip a wider range of problems (eg GAE) when attempting to set an xml security manager as best we can

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1650290 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_3_12_BETA1
Nick Burch před 9 roky
rodič
revize
ef2ca85280

+ 2
- 2
src/ooxml/java/org/apache/poi/util/DocumentHelper.java Zobrazit soubor

@@ -80,8 +80,8 @@ public final class DocumentHelper {
documentBuilderFactory.setAttribute("http://apache.org/xml/properties/security-manager", mgr);
// Stop once one can be setup without error
return;
} catch (Exception e) {
logger.log(POILogger.WARN, "SAX Security Manager could not be setup", e);
} catch (Throwable t) {
logger.log(POILogger.WARN, "SAX Security Manager could not be setup", t);
}
}
}

Načítá se…
Zrušit
Uložit