[PATCH] JDK-6783290: MBeanInfo/MBeanFeatureInfo has inconsistent readObject/writeObject

Eamonn McManus eamonn at mcmanus.net
Wed Oct 24 08:49:32 PDT 2012


This is already Reviewed-by: emcmanus, but I'm afraid I can't sponsor it.

Éamonn


2012/10/24 Jaroslav Bachorik <jaroslav.bachorik at oracle.com>

> I am looking for review and a sponsor.
>
> Webrev is available at
> http://cr.openjdk.java.net/~jbachorik/JDK-6783290/webrev.01/
>
> The serialization of javax.management.MBeanInfo and
> javax.management.MBeanFeatureInfo instances is asymmetrical in cases
> with no attached descriptor. The descriptor is serialized as an empty
> array but when deserializing the descriptor is not read back at all.
> Currently for RMI this does not pose any problem but the specification
> does not explicitly allow this kind of behaviour and it may cause
> troubles eventually.
>
> The patch just reads back the empty array to keep the
> serialization/deserialization symmetric.
>
> Thanks,
>
> -JB-
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20121024/fe8a9bbe/attachment-0001.html 


More information about the serviceability-dev mailing list