You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ga...@apache.org on 2012/04/08 21:02:04 UTC

svn commit: r1311070 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/PropertyCache.java

Author: gadams
Date: Sun Apr  8 19:02:03 2012
New Revision: 1311070

URL: http://svn.apache.org/viewvc?rev=1311070&view=rev
Log:
Bugzilla #50435: Use true as default for properties use-cache in case of access exception.

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/PropertyCache.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/PropertyCache.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/PropertyCache.java?rev=1311070&r1=1311069&r2=1311070&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/PropertyCache.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/PropertyCache.java Sun Apr  8 19:02:03 2012
@@ -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>>();



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