jmx-dev RFR: 8002307 javax.management.modelmbean.ModelMBeanInfoSupport may expose internal representation by storing an externally mutable object
Staffan Larsen
staffan.larsen at oracle.com
Tue May 28 06:25:23 PDT 2013
Looks good.
/Staffan
On 28 maj 2013, at 15:04, Jaroslav Bachorik <jaroslav.bachorik at oracle.com> wrote:
> 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 jmx-dev
mailing list