poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1650290 - /poi/trunk/src/ooxml/java/org/apache/poi/util/DocumentHelper.java
Date Thu, 08 Jan 2015 13:22:50 GMT
Author: nick
Date: Thu Jan  8 13:22:50 2015
New Revision: 1650290

URL: http://svn.apache.org/r1650290
Log:
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

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/util/DocumentHelper.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/util/DocumentHelper.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/util/DocumentHelper.java?rev=1650290&r1=1650289&r2=1650290&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/util/DocumentHelper.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/util/DocumentHelper.java Thu Jan  8 13:22:50 2015
@@ -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);
             }
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message