[armedbear-cvs] r12435 - trunk/abcl/src/org/armedbear/lisp
Mark Evenson
mevenson at common-lisp.net
Tue Feb 9 15:43:00 UTC 2010
Author: mevenson
Date: Tue Feb 9 10:42:58 2010
New Revision: 12435
Log:
Turn off all caching of JAR entries as it inhibited reloading FASLs.
The java.net.JarURLConnection implementation *never* invalidates its
cache even for files on the local filesystem, making it highly
unsuitable to represent FASL sources. One can create a custom
protocol handler, but in the manner oh-so-typical of Java, we cannot
use the default implementation so a sizable amount of coding lies
ahead. For the time being, we just disable caching.
Modified:
trunk/abcl/src/org/armedbear/lisp/Pathname.java
Modified: trunk/abcl/src/org/armedbear/lisp/Pathname.java
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/Pathname.java (original)
+++ trunk/abcl/src/org/armedbear/lisp/Pathname.java Tue Feb 9 10:42:58 2010
@@ -1746,7 +1746,8 @@
return null;
}
JarURLConnection jarURLConnection = (JarURLConnection) connection;
-
+ // XXX implement custom protocol handler that actual does the necessary caching
+ connection.setUseCaches(false);
JarFile result;
try {
result = jarURLConnection.getJarFile();
More information about the armedbear-cvs
mailing list