You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by la...@apache.org on 2001/03/04 20:49:04 UTC
cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util/compat SimpleClassLoader.java
larryi 01/03/04 11:49:04
Modified: src/share/org/apache/tomcat/util/compat
SimpleClassLoader.java
Log:
Port fix in Tomcat 3.2.2 for Bugzilla Bug #134.
Submitted by: Joel Bartley
Update Resource.doFindResource() to close the ZipFile object when
no longer needed (as recommented in the JDK documentation).
Revision Changes Path
1.2 +1 -1 jakarta-tomcat/src/share/org/apache/tomcat/util/compat/SimpleClassLoader.java
Index: SimpleClassLoader.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/compat/SimpleClassLoader.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SimpleClassLoader.java 2001/02/10 08:12:42 1.1
+++ SimpleClassLoader.java 2001/03/04 19:49:02 1.2
@@ -475,7 +475,7 @@
try {
ZipFile zf = new ZipFile(file.getAbsolutePath());
ZipEntry ze = zf.getEntry(name);
- //if( debug > 0 ) log( "Searching " + file + " " + name );
+ zf.close();
if (ze != null) {
r.zipEntry=ze;