User: juhalindfors
Date: 02/03/08 02:38:48
Modified: src/main/org/jboss/mx/interceptor
MBeanAttributeInterceptor.java
Log:
invoker already unwrapped the attribute value
Revision Changes Path
1.2 +6 -3
jmx/src/main/org/jboss/mx/interceptor/MBeanAttributeInterceptor.java
Index: MBeanAttributeInterceptor.java
===================================================================
RCS file:
/cvsroot/jboss/jmx/src/main/org/jboss/mx/interceptor/MBeanAttributeInterceptor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MBeanAttributeInterceptor.java 22 Feb 2002 14:19:01 -0000 1.1
+++ MBeanAttributeInterceptor.java 8 Mar 2002 10:38:48 -0000 1.2
@@ -22,7 +22,7 @@
* Quick hack, non mapping/caching attribute interceptor
*
* @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>.
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*
*/
public class MBeanAttributeInterceptor
@@ -53,9 +53,12 @@
if (invocation.getImpact() == Invocation.WRITE)
{
- d.setField(VALUE, ((Attribute)invocation.getArgs() [0]).getValue());
+ d.setField(VALUE, invocation.getArgs() [0]);
info.setDescriptor(d, ATTRIBUTE_DESCRIPTOR);
- return getNext().invoke(invocation);
+
+ // there's no mapping there
+ //return getNext().invoke(invocation);
+ return d.getFieldValue(VALUE);
}
else
{
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development