Browse Source

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
tags/fop-1_1rc1old
Glenn Adams 12 years ago
parent
commit
656f7b54b5
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/java/org/apache/fop/fo/properties/PropertyCache.java

+ 3
- 1
src/java/org/apache/fop/fo/properties/PropertyCache.java View 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>>();

Loading…
Cancel
Save