markt       2004/07/03 12:52:07

  Modified:    catalina/src/share/org/apache/catalina/loader
                        WebappClassLoader.java
  Log:
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.53      +6 -10     
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.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- WebappClassLoader.java    3 Jul 2004 18:47:28 -0000       1.52
  +++ WebappClassLoader.java    3 Jul 2004 19:52:06 -0000       1.53
  @@ -1895,12 +1895,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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to