EVALUATION
Currently there are 19 classes defining oldSerialVersionUID and newSerialVersionUID, and setting in a static initialization block their actual serialVersionUID to either one of these values depending on the system property jmx.serial.form.
Ideally we would like this information to appear in the Serialized Form javadoc page, as the first information for each class. I did not manage to achieve that so far because the @serial tag must document default serializable fields (so in particular non static) and is ignored in other cases. It is also ignored if used in the main description of the class to add a comment for the Serialized Form page.
Unless I am missing something, possible options I see are:
* either add this serialVersionUID information to the the main javadoc description of the class (but it will not appear in the Serialized Form page)
* or add it to the writeObject and readObject methods javadoc information for the 2 classes that extend the default mechanism, and to the @serial information of an already existing field for the 17 others (a bit ugly though).
For information, the impacted classes are:
javax/management/ClassAttributeValueExp.java
javax/management/modelmbean/DescriptorSupport.java
javax/management/modelmbean/InvalidTargetObjectTypeException.java
javax/management/modelmbean/ModelMBeanAttributeInfo.java
javax/management/modelmbean/ModelMBeanConstructorInfo.java
javax/management/modelmbean/ModelMBeanInfoSupport.java
javax/management/modelmbean/ModelMBeanNotificationInfo.java
javax/management/modelmbean/ModelMBeanOperationInfo.java
javax/management/modelmbean/XMLParseException.java
javax/management/Notification.java
javax/management/NumericValueExp.java
javax/management/ObjectName.java
javax/management/relation/MBeanServerNotificationFilter.java
javax/management/relation/RelationNotification.java
javax/management/relation/RelationTypeSupport.java
javax/management/relation/RoleInfo.java
javax/management/relation/Role.java
javax/management/relation/RoleResult.java
javax/management/relation/RoleUnresolved.java
|