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-4.0/catalina/src/share/org/apache/catalina/loader WebappClassLoader.java
Date Sat, 03 Jul 2004 18:47:29 GMT
markt       2004/07/03 11:47:29

  Modified:    catalina/src/share/org/apache/catalina/loader
                        WebappClassLoader.java
  Log:
  Fix bug26375. Fix package sealing test for partially sealed jars.
    - Patch provided by Mike Bremford
  
  Revision  Changes    Path
  1.52      +10 -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.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- WebappClassLoader.java	28 Jun 2004 22:25:24 -0000	1.51
  +++ WebappClassLoader.java	3 Jul 2004 18:47:28 -0000	1.52
  @@ -1895,8 +1895,12 @@
        */
       protected boolean isPackageSealed(String name, Manifest man) {
   
  -        String path = name + "/";
  -        Attributes attr = man.getAttributes(path);
  +        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 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