From 860e8234581a041579834fae8da11248a12dedc4 Mon Sep 17 00:00:00 2001 From: Adrian Cumiskey <acumiskey@apache.org> Date: Wed, 7 May 2008 23:27:45 +0000 Subject: Looks like the serialVersionUID got bumped but the log statement wasn't being completely honest about what it was doing. FontCache now attempts to delete its cache file so subsequent runs should repopulate it. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@654322 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fonts/FontCache.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/java/org/apache/fop/fonts/FontCache.java b/src/java/org/apache/fop/fonts/FontCache.java index c5b6ab9c7..213f5cdee 100644 --- a/src/java/org/apache/fop/fonts/FontCache.java +++ b/src/java/org/apache/fop/fonts/FontCache.java @@ -151,6 +151,11 @@ public final class FontCache implements Serializable { //We don't really care about the exception since it's just a cache file log.warn("I/O exception while reading font cache (" + ioe.getMessage() + "). Discarding font cache file."); + try { + cacheFile.delete(); + } catch(SecurityException ex) { + log.warn("Failed to delete font cache file: " + cacheFile.getAbsolutePath()); + } } } return null; -- cgit v1.2.3