tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util/depend DependClassLoader12.java
Date Wed, 12 Jun 2002 00:13:37 GMT
costin      2002/06/11 17:13:37

  Modified:    src/share/org/apache/tomcat/util/depend
                        DependClassLoader12.java
  Log:
  Added more checks for parent. In most normal cases the parent will be
  a URLClassLoader ( or should be ).
  
  Revision  Changes    Path
  1.11      +5 -1      jakarta-tomcat/src/share/org/apache/tomcat/util/depend/DependClassLoader12.java
  
  Index: DependClassLoader12.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/depend/DependClassLoader12.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- DependClassLoader12.java	11 Jun 2002 23:16:19 -0000	1.10
  +++ DependClassLoader12.java	12 Jun 2002 00:13:37 -0000	1.11
  @@ -173,7 +173,11 @@
       }
   
       public URL[] getURLs() {
  -        return ((URLClassLoader)parent).getURLs();
  +        if( parent instanceof URLClassLoader )
  +            return ((URLClassLoader)parent).getURLs();
  +        if( parent instanceof SimpleClassLoader ) 
  +            return ((SimpleClassLoader)parent).getURLs();
  +        return super.getURLs();
       }
       
       private String getAttribute(Attributes.Name key, Attributes main, Attributes pkg)
  
  
  

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