tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gl...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/loader StandardClassLoader.java WebappClassLoader.java
Date Tue, 06 Aug 2002 00:16:59 GMT
glenn       2002/08/05 17:16:59

  Modified:    catalina/src/share/org/apache/catalina/loader
                        StandardClassLoader.java WebappClassLoader.java
  Log:
  The toString() method could generate a SecurityException if a RuntimePermission getClassloader
  permission was not granted.  This was due to the calls to ClassLoader.getParent().  But
the
  ClassLoader alread new the parent.  Using this.parent instead of getParent removed the need
  for granting the RuntimePermission getClassloader.
  
  Revision  Changes    Path
  1.28      +6 -6      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/loader/StandardClassLoader.java
  
  Index: StandardClassLoader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/loader/StandardClassLoader.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- StandardClassLoader.java	19 Jun 2002 15:38:01 -0000	1.27
  +++ StandardClassLoader.java	6 Aug 2002 00:16:59 -0000	1.28
  @@ -565,9 +565,9 @@
               sb.append(required.next().toString());
               sb.append("\r\n");
           }
  -        if (getParent() != null) {
  +        if (this.parent != null) {
               sb.append("----------> Parent Classloader:\r\n");
  -            sb.append(getParent().toString());
  +            sb.append(this.parent.toString());
               sb.append("\r\n");
           }
           return (sb.toString());
  
  
  
  1.44      +6 -6      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java
  
  Index: WebappClassLoader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- WebappClassLoader.java	22 Jul 2002 19:52:40 -0000	1.43
  +++ WebappClassLoader.java	6 Aug 2002 00:16:59 -0000	1.44
  @@ -901,9 +901,9 @@
               sb.append(required.next().toString());
               sb.append("\r\n");
           }
  -        if (getParent() != null) {
  +        if (this.parent != null) {
               sb.append("----------> Parent Classloader:\r\n");
  -            sb.append(getParent().toString());
  +            sb.append(this.parent.toString());
               sb.append("\r\n");
           }
           return (sb.toString());
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message