RFR 8080663: Use sun.misc.SharedSecrets to allow access from java.management to @ConstructorProperties

Alan Bateman Alan.Bateman at oracle.com
Wed May 20 14:56:38 UTC 2015



On 20/05/2015 15:38, Mandy Chung wrote:
>
> Using the shared secret approach is okay.  Some suggestion:
>
> Since both sun.misc.JavaBeansIntrospectorAccess and 
> ConstructorPropertiesAccess  are for JMX to access java.beans types, 
> it could be simplified to have one single interface (e.g. 
> sun.misc.JavaBeansAccess) to define
>    Method getReadMethod(Class<?>, String);
>    String[] getConstructorProperties(Constructor);
>
> AnnotationHelper and BeansIntrospector can then be merged into the new 
> JavaBeansAccessor class.
>
I agree and it make it easier to get to other beans classes if needed.

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20150520/f74f53f5/attachment.html>


More information about the serviceability-dev mailing list