]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugzilla #50435: Use true as default for properties use-cache in case of access excep...
authorGlenn Adams <gadams@apache.org>
Sun, 8 Apr 2012 19:02:03 +0000 (19:02 +0000)
committerGlenn Adams <gadams@apache.org>
Sun, 8 Apr 2012 19:02:03 +0000 (19:02 +0000)
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

index 76ed35d76cb913e22d34f266f20d92710ee363f2..f35ab2dadffd6935e5a02a5a5a6e236b972cfc30 100644 (file)
@@ -82,7 +82,9 @@ public final class PropertyCache<T> {
                     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<Integer, WeakReference<T>>();