tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lar...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util/compat SimpleClassLoader.java
Date Sun, 04 Mar 2001 19:49:04 GMT
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;
  
  
  

Mime
View raw message