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

Jaroslav Bachorik jaroslav.bachorik at oracle.com
Wed Oct 24 07:09:58 PDT 2012


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-


More information about the serviceability-dev mailing list