RFR: 7150256: Add back Diagnostic Command JMX API
mandy.chung at oracle.com
Fri May 3 18:30:24 UTC 2013
On 5/3/2013 11:19 AM, Daniel Fuchs wrote:
> On 5/3/13 8:02 PM, Mandy Chung wrote:
>> 2. Investigate what DiagnosticCommandImpl.getAttributes and
>> setAttributes should do per DynamicMBean spec. The current
>> implementation throws UOE which seem to be okay. It's good to confirm
>> what is specified or not specified per DynamicMBean spec
> By analogy with what the MBeanServerConnection says and what
> the StandardMBean class does, I'd say that the expected behavior
> would be to return an empty AttributeList for both methods.
Thanks Daniel. I initially thought that these 2 methods should return
an empty AttributeList. MBeanServerConnection specifies clearly that
missing attribute will be omitted and the caller will use the returned
value to determine any missing attribute. It makes sense to expect
DynamicMBean.get/setAttributes the same behavior as MBS forwards the
call to the mbeans.
Frederic - you can simply fix this to return an empty AttributeList.
Can you also file a bug for DynamicMBean to clarify the expected
behavior in the specification?
> -- daniel
More information about the core-libs-dev