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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to