瀏覽代碼

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 年之前
父節點
當前提交
656f7b54b5
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      src/java/org/apache/fop/fo/properties/PropertyCache.java

+ 3
- 1
src/java/org/apache/fop/fo/properties/PropertyCache.java 查看文件

@@ -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…
取消
儲存