leif        2002/11/28 07:54:06

  Modified:    component/src/java/org/apache/avalon/excalibur/component
                        ExcaliburComponentManager.java
  Log:
  Fix a problem where exceptions encountered during initialization of the ECM
  were being caught and logged but there was no way for the code which created
  the ECM could tell whether or not there had been any problems.  initialize now
  behaves the same way as configure.
  
  Revision  Changes    Path
  1.21      +7 -1      
jakarta-avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component/ExcaliburComponentManager.java
  
  Index: ExcaliburComponentManager.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component/ExcaliburComponentManager.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- ExcaliburComponentManager.java    7 Nov 2002 18:26:23 -0000       1.20
  +++ ExcaliburComponentManager.java    28 Nov 2002 15:54:06 -0000      1.21
  @@ -528,6 +528,9 @@
                           getLogger().error( "Caught an exception trying to 
initialize "
                                              + "the component handler.", e );
                       }
  +                    
  +                    // Rethrow the exception
  +                    throw e;
                   }
               }
   
  @@ -562,6 +565,9 @@
                           {
                               getLogger().error( "Caught an exception trying to 
initialize "
                                                  + "the component handler.", e );
  +                            
  +                            // Rethrow the exception
  +                            throw e;
                           }
                       }
                   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to