in RequiredModelMBean.java, public AttributeList getAttributes(String[] attrNames) { } emits a WARNING (JDK7) / SEVERE (JDK 6) message if the list of attrNames contain an attribute which isn't declared in the MBean (or which is write-only). There's no reason for emitting more than a debug trace here: if the attribute is not found it will be omitted from the result - just like JMX spec says it should. Standard MBean do not print WARNING/SEVERE messages in this case, so there's no reason that RequiredModelMBean should (except for debug purposes).
|