commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-commons/modeler/src/java/org/apache/commons/modeler BaseModelMBean.java
Date Mon, 14 Apr 2003 14:49:22 GMT
costin      2003/04/14 07:49:22

  Modified:    modeler/src/java/org/apache/commons/modeler
                        BaseModelMBean.java
  Log:
  fatal error: the exception is changing the signature.
  
  Revision  Changes    Path
  1.20      +10 -6     jakarta-commons/modeler/src/java/org/apache/commons/modeler/BaseModelMBean.java
  
  Index: BaseModelMBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/modeler/src/java/org/apache/commons/modeler/BaseModelMBean.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- BaseModelMBean.java	13 Apr 2003 16:51:47 -0000	1.19
  +++ BaseModelMBean.java	14 Apr 2003 14:49:22 -0000	1.20
  @@ -551,13 +551,17 @@
        */
       public void setAttribute(Attribute attribute)
           throws AttributeNotFoundException, MBeanException,
  -        ReflectionException, InvalidAttributeValueException
  +        ReflectionException
       {
           if( log.isDebugEnabled() )
               log.debug("Setting attribute " + this + " " + attribute );
   
           if( resource instanceof DynamicMBean ) {
  -            ((DynamicMBean)resource).setAttribute(attribute);
  +            try {
  +                ((DynamicMBean)resource).setAttribute(attribute);
  +            } catch (InvalidAttributeValueException e) {
  +                throw new MBeanException(e);                
  +            }
               return;
           }
           
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message