Author: rfrovarp
Date: Wed Dec 12 13:58:05 2007
New Revision: 603752
URL: http://svn.apache.org/viewvc?rev=603752&view=rev
Log:
Fixes 42385. Batik uses toString for caching of source images. This fixes issues with the cache.
Modified:
lenya/trunk/src/modules/svg/java/src/org/apache/lenya/modules/svg/ProtocolHandler.java
Modified: lenya/trunk/src/modules/svg/java/src/org/apache/lenya/modules/svg/ProtocolHandler.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/svg/java/src/org/apache/lenya/modules/svg/ProtocolHandler.java?rev=603752&r1=603751&r2=603752&view=diff
==============================================================================
--- lenya/trunk/src/modules/svg/java/src/org/apache/lenya/modules/svg/ProtocolHandler.java (original)
+++ lenya/trunk/src/modules/svg/java/src/org/apache/lenya/modules/svg/ProtocolHandler.java Wed Dec 12 13:58:05 2007
@@ -98,6 +98,12 @@
}
}
+ // Batik uses toString for caching.
+ // Use URL and last modified time for proper caching of source images.
+ public String toString() {
+ return url + source.getLastModified();
+ }
+
}
public void start() throws Exception {
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.