Agreed. An attribute should never be exposed as an operation via metadata. I also think this is a minor issue.
New patch with solution proposed by Dimitris now with tests.
But I have a some questions. "StandardMBeans" always use MBeanInfoConversion.toModelMBeanInfo to mount its ModelMBeanInfo, and the ModelMBeanInfo created always add attribute methods to ModelMBeanOperationInfo array. Is this a same problem that JBossXMBean10? Is there a reason to do that ?
In the javadoc we can see "getOperations() returns the list of all methods in the MBean interface that do not represent attributes".
I guess it's the same problem (another bug). Thanks for the patch!
Ok. So I think that I will add more tests about this issue to be sure, and I hope to post the results soon.