From 656f7b54b5ef98d2ab55142e411a0427c92d193c Mon Sep 17 00:00:00 2001 From: Glenn Adams Date: Sun, 8 Apr 2012 19:02:03 +0000 Subject: [PATCH] Bugzilla #50435: Use true as default for properties use-cache in case of access exception. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1311070 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/properties/PropertyCache.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/fo/properties/PropertyCache.java b/src/java/org/apache/fop/fo/properties/PropertyCache.java index 76ed35d76..f35ab2dad 100644 --- a/src/java/org/apache/fop/fo/properties/PropertyCache.java +++ b/src/java/org/apache/fop/fo/properties/PropertyCache.java @@ -82,7 +82,9 @@ public final class PropertyCache { System.getProperty("org.apache.fop.fo.properties.use-cache", "true")) .booleanValue(); } catch ( SecurityException e ) { - useCache = false; + useCache = true; + LOG.info("Unable to access org.apache.fop.fo.properties.use-cache" + + " due to security restriction; defaulting to 'true'."); } if ( useCache ) { this.map = new ConcurrentHashMap>(); -- 2.39.5