tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader WebappClassLoader.java
Date Sat, 03 Jul 2004 19:51:14 GMT
markt       2004/07/03 12:51:14

  Modified:    catalina/src/share/org/apache/catalina/loader
                        WebappClassLoader.java
  Log:
  Improve previous patch - thanks to Bill Barker
  
  Revision  Changes    Path
  1.38      +3 -7      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.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- WebappClassLoader.java	3 Jul 2004 18:50:10 -0000	1.37
  +++ WebappClassLoader.java	3 Jul 2004 19:51:14 -0000	1.38
  @@ -1886,12 +1886,8 @@
        */
       protected boolean isPackageSealed(String name, Manifest man) {
   
  -        StringBuffer buf = new StringBuffer(name); 
  -        for (int i=0;i<buf.length();i++) { 
  -            if (buf.charAt(i)=='.') buf.setCharAt(i,'/'); 
  -        } 
  -        buf.append('/'); 
  -        Attributes attr = man.getAttributes(buf.toString()); 
  +        String path = name.replace('.', '/') + '/';
  +        Attributes attr = man.getAttributes(path); 
           String sealed = null;
           if (attr != null) {
               sealed = attr.getValue(Name.SEALED);
  
  
  

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


Mime
View raw message