avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/baxter/src/java/org/apache/excalibur/baxter AbstractMBean.java
Date Wed, 15 May 2002 10:52:39 GMT
donaldp     02/05/15 03:52:39

  Modified:    baxter/src/java/org/apache/excalibur/baxter
                        AbstractMBean.java
  Log:
  Make it compile this time ;)
  
  Revision  Changes    Path
  1.5       +10 -2     jakarta-avalon-excalibur/baxter/src/java/org/apache/excalibur/baxter/AbstractMBean.java
  
  Index: AbstractMBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/baxter/src/java/org/apache/excalibur/baxter/AbstractMBean.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AbstractMBean.java	15 May 2002 10:47:37 -0000	1.4
  +++ AbstractMBean.java	15 May 2002 10:52:39 -0000	1.5
  @@ -31,7 +31,7 @@
    *
    * @author <a href="mailto:mail@leosimons.com">Leo Simons</a>
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version CVS $Revision: 1.4 $ $Date: 2002/05/15 10:47:37 $
  + * @version CVS $Revision: 1.5 $ $Date: 2002/05/15 10:52:39 $
    */
   public abstract class AbstractMBean
       extends NotificationBroadcasterSupport
  @@ -194,7 +194,15 @@
           }
           catch( final InvocationTargetException ite )
           {
  -            throw new MBeanException( ite.getTargetException() );
  +            final Throwable throwable = ite.getTargetException();
  +            if( throwable instanceof Exception )
  +            {
  +                throw new MBeanException( (Exception)throwable );
  +            }
  +            else
  +            {
  +                throw new MBeanException( ite, throwable.toString() );
  +            }
           }
           catch( final Exception e )
           {
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message