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-phoenix/src/java/org/apache/jmx/introspector AbstractMBean.java
Date Thu, 21 Mar 2002 08:16:43 GMT
donaldp     02/03/21 00:16:43

  Modified:    src/java/org/apache/jmx/introspector AbstractMBean.java
  Log:
  FIx bug.
  
  After you create an exception you need to throw it!
  
  Revision  Changes    Path
  1.7       +3 -3      jakarta-avalon-phoenix/src/java/org/apache/jmx/introspector/AbstractMBean.java
  
  Index: AbstractMBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/jmx/introspector/AbstractMBean.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- AbstractMBean.java	16 Mar 2002 00:11:57 -0000	1.6
  +++ AbstractMBean.java	21 Mar 2002 08:16:42 -0000	1.7
  @@ -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.6 $ $Date: 2002/03/16 00:11:57 $
  + * @version CVS $Revision: 1.7 $ $Date: 2002/03/21 08:16:42 $
    */
   public abstract class AbstractMBean
       extends NotificationBroadcasterSupport
  @@ -122,7 +122,7 @@
   
           if( null == method )
           {
  -            new AttributeNotFoundException( attribute );
  +            throw new AttributeNotFoundException( attribute );
           }
   
           try
  @@ -220,7 +220,7 @@
   
           if( null == method )
           {
  -            new AttributeNotFoundException( attribute.getName() );
  +            throw new AttributeNotFoundException( attribute.getName() );
           }
   
           try
  
  
  

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