remm        2003/06/12 15:02:12

  Modified:    catalina/src/share/org/apache/catalina/loader
                        WebappClassLoader.java
  Log:
  - Null out all fields after finishing loading a class.
  
  Revision  Changes    Path
  1.16      +6 -1      
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java
  
  Index: WebappClassLoader.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- WebappClassLoader.java    8 Mar 2003 17:01:20 -0000       1.15
  +++ WebappClassLoader.java    12 Jun 2003 22:02:12 -0000      1.16
  @@ -1561,6 +1561,11 @@
                                           entry.binaryContent.length, 
                                           codeSource);
                       entry.loadedClass = clazz;
  +                    entry.binaryContent = null;
  +                    entry.source = null;
  +                    entry.codeBase = null;
  +                    entry.manifest = null;
  +                    entry.certificates = null;
                   } else {
                       clazz = entry.loadedClass;
                   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to