RFR: 8002307 javax.management.modelmbean.ModelMBeanInfoSupport may expose internal representation by storing an externally mutable object
Jaroslav Bachorik
jaroslav.bachorik at oracle.com
Tue May 28 06:13:34 PDT 2013
Please, review the fix for JDK-8002307.
The fix assures the immutability by cloning the provided arrays in the
constructor and then cloning them again in the getters.
The constructors are fixed in the javax/management/MBeanInfo.java and
the arrays used in getters are cloned using an already existing
functionality in the same class.
http://cr.openjdk.java.net/~jbachorik/8002307/webrev.01
Thanks,
-JB-
More information about the serviceability-dev
mailing list