tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gl...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/factory ResourceFactory.java
Date Wed, 26 Dec 2001 02:15:44 GMT
glenn       01/12/25 18:15:43

  Modified:    catalina/src/share/org/apache/naming/factory
                        ResourceFactory.java
  Log:
  Forgot to cast a Throwable when rethrowing
  
  Revision  Changes    Path
  1.6       +5 -5      jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/factory/ResourceFactory.java
  
  Index: ResourceFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/factory/ResourceFactory.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ResourceFactory.java	2001/12/26 01:22:10	1.5
  +++ ResourceFactory.java	2001/12/26 02:15:43	1.6
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/factory/ResourceFactory.java,v
1.5 2001/12/26 01:22:10 glenn Exp $
  - * $Revision: 1.5 $
  - * $Date: 2001/12/26 01:22:10 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/factory/ResourceFactory.java,v
1.6 2001/12/26 02:15:43 glenn Exp $
  + * $Revision: 1.6 $
  + * $Date: 2001/12/26 02:15:43 $
    *
    * ====================================================================
    *
  @@ -77,7 +77,7 @@
    * Object factory for Resources.
    * 
    * @author Remy Maucherat
  - * @version $Revision: 1.5 $ $Date: 2001/12/26 01:22:10 $
  + * @version $Revision: 1.6 $ $Date: 2001/12/26 02:15:43 $
    */
   
   public class ResourceFactory
  @@ -142,7 +142,7 @@
                           factory = (ObjectFactory) factoryClass.newInstance();
                       } catch(Throwable t) {
                           if( t instanceof NamingException)
  -                            throw t;
  +                            throw (NamingException)t;
                           throw new NamingException(
                               "Could not create resource factory instance, " +
                               t.getMessage());
  
  
  

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