[PATCH] JDK-6783290: MBeanInfo/MBeanFeatureInfo has inconsistent readObject/writeObject
Dmitry Samersoff
Dmitry.Samersoff at oracle.com
Wed Oct 24 10:03:34 PDT 2012
Jaroslav,
I'll sponsor it. Just ping me when the fix passed all reviews.
-Dmitry
On 2012-10-24 19:49, Eamonn McManus wrote:
> 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
> <mailto: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-
>
>
--
Dmitry Samersoff
Java Hotspot development team, SPB04
* There will come soft rains ...
More information about the serviceability-dev
mailing list