tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/loader StandardClassLoader.java
Date Wed, 19 Jun 2002 15:38:01 GMT
rubys       2002/06/19 08:38:01

  Modified:    catalina/src/share/org/apache/catalina/loader
                        StandardClassLoader.java
  Log:
  While most JDK's on Windows are very tolerant of backslashes in file:
  URLs, they are not consisent in exactly WHEN they make the transition
  to spec compliant URLs.  In this case, the url was constructed in
  org.apache.catalina.startup.ClassLoaderFactory.createClassLoader using
  File.separator and extracted using toString().
  
  Revision  Changes    Path
  1.27      +6 -5      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.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- StandardClassLoader.java	13 Mar 2002 01:26:49 -0000	1.26
  +++ StandardClassLoader.java	19 Jun 2002 15:38:01 -0000	1.27
  @@ -1062,7 +1062,8 @@
               streamHandler = factory.createURLStreamHandler(protocol);
   
           // Validate the manifest of a JAR file repository
  -        if (!repository.endsWith(File.separator)) {
  +        if (!repository.endsWith(File.separator) &&
  +            !repository.endsWith("/")) {
               JarFile jarFile = null;
               try {
                   Manifest manifest = null;
  
  
  

--
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