You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by pa...@apache.org on 2002/10/18 17:34:09 UTC
cvs commit: jakarta-commons/modeler/src/java/org/apache/commons/modeler BaseModelMBean.java
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>