You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by rf...@apache.org on 2007/12/12 22:58:06 UTC
svn commit: r603752 -
/lenya/trunk/src/modules/svg/java/src/org/apache/lenya/modules/svg/ProtocolHandler.java
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 {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org