----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, July 03, 2004 11:50 AM Subject: cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader WebappClassLoader.java
=================================================================== > RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loa der/WebappClassLoader.java,v > retrieving revision 1.36 > retrieving revision 1.37 > diff -u -r1.36 -r1.37 > --- WebappClassLoader.java 25 Jun 2004 23:56:25 -0000 1.36 > +++ WebappClassLoader.java 3 Jul 2004 18:50:10 -0000 1.37 > @@ -1886,8 +1886,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); > > It's not a big deal, but wouldn't it be cleaner to do: String path = name.replace('.', '/') + "/"; > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
This message is intended only for the use of the person(s) listed above as the intended recipient(s), and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not an intended recipient, you may not read, copy, or distribute this message or any attachment. If you received this communication in error, please notify us immediately by e-mail and then delete all copies of this message and any attachments. In addition you should be aware that ordinary (unencrypted) e-mail sent through the Internet is not secure. Do not send confidential or sensitive information, such as social security numbers, account numbers, personal identification numbers and passwords, to us via ordinary (unencrypted) e-mail.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]