Please, review the following change

Issue : https://bugs.openjdk.java.net/browse/JDK-8129215
Webrev: http://cr.openjdk.java.net/~jbachorik/8129215/webrev.00

The JMX Introspector will try to use the JavaBeans introspector whenever possible, delegating the requests for the property getter/setter methods. However, when the JavaBeans introspector is not available (modules) the JMX Introspector falls back to its own simple, reflection based, algorithm.

The simple algorithm does not enforce the rule of property names starting with a lower-case letter. This might lead to situations when the simple introspector provides the getter method for an attribute the JavaBeans introspector would not (eg. 'Attribute' attribute)

This patch changes the simple introspector behaviour to conform to the one of the JavaBeans introspector. Also, it makes the simple introspector called only when the JavaBeans introspector is not available - and not when the JavaBeans introspector fails to resolve a property getter.

Thanks,

-JB-

Reply via email to