Просмотр исходного кода

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 лет назад
Родитель
Сommit
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>>();

Загрузка…
Отмена
Сохранить