commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patri...@apache.org
Subject cvs commit: jakarta-commons/modeler/src/java/org/apache/commons/modeler BaseModelMBean.java
Date Fri, 18 Oct 2002 15:34:09 GMT
patrickl    2002/10/18 08:34:09

  Modified:    modeler/src/java/org/apache/commons/modeler
                        BaseModelMBean.java
  Log:
  Fix bug where MBeanServer.getAttributes does not return Attribute object
  Submitted by: Hans Hrasna (hans.hrasna@sun.com)
  
  Revision  Changes    Path
  1.4       +5 -5      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- BaseModelMBean.java	8 Aug 2002 05:36:54 -0000	1.3
  +++ BaseModelMBean.java	18 Oct 2002 15:34:09 -0000	1.4
  @@ -317,7 +317,7 @@
           AttributeList response = new AttributeList();
           for (int i = 0; i < names.length; i++) {
               try {
  -                response.add(getAttribute(names[i]));
  +                response.add(new Attribute(names[i],getAttribute(names[i])));
               } catch (Exception e) {
                   ; // Not having a particular attribute in the response
                   ; // is the indication of a getter problem
  
  
  

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


Mime
View raw message