Changeset 11998
- Timestamp:
- 06/06/09 17:46:59 (14 years ago)
- Location:
- trunk/abcl/src/org/armedbear/lisp
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/Lisp.java
r11994 r11998 1076 1076 } 1077 1077 zipFileName = URLDecoder.decode(zipFileName, "UTF-8"); 1078 ZipFile zipFile = new ZipFile(zipFileName);1078 ZipFile zipFile = ZipCache.getZip(zipFileName); 1079 1079 try 1080 1080 { … … 1090 1090 finally 1091 1091 { 1092 zipFile.close();1092 ZipCache.removeZip(zipFile.getName()); 1093 1093 } 1094 1094 } … … 1140 1140 LispObject loadTruename = Symbol.LOAD_TRUENAME.symbolValue(thread); 1141 1141 String zipFileName = ((Pathname)loadTruename).getNamestring(); 1142 ZipFile zipFile = new ZipFile(zipFileName);1142 ZipFile zipFile = ZipCache.getZip(zipFileName); 1143 1143 try 1144 1144 { … … 1156 1156 finally 1157 1157 { 1158 zipFile.close();1158 ZipCache.removeZip(zipFile.getName()); 1159 1159 } 1160 1160 } … … 1198 1198 Class c = (new JavaClassLoader()).loadClassFromByteArray(null, bytes, 0, bytes.length); 1199 1199 if (c != null) { 1200 Class sc = c.getSuperclass();1201 1200 Constructor constructor = c.getConstructor((Class[])null); 1202 1201 LispObject obj = (LispObject) constructor.newInstance((Object[])null); -
trunk/abcl/src/org/armedbear/lisp/Load.java
r11889 r11998 124 124 { 125 125 try { 126 zipfile = new ZipFile(file);126 zipfile = ZipCache.getZip(file.getPath()); 127 127 } 128 128 catch (Throwable t) { … … 176 176 if (in != null) { 177 177 try { 178 178 in.close(); 179 179 } 180 180 catch (IOException e) { … … 184 184 if (zipfile != null) { 185 185 try { 186 zipfile.close();186 ZipCache.removeZip(zipfile.getName()); 187 187 } 188 188 catch (IOException e) { … … 266 266 if (ext.equalsIgnoreCase(".abcl")) { 267 267 try { 268 zipfile = new ZipFile(file);268 zipfile = ZipCache.getZip(file.getPath()); 269 269 String name = file.getName(); 270 270 int index = name.lastIndexOf('.'); … … 339 339 if (zipfile != null) { 340 340 try { 341 zipfile.close();341 ZipCache.removeZip(zipfile.getName()); 342 342 } 343 343 catch (IOException e) {
Note: See TracChangeset
for help on using the changeset viewer.