Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6253903

Serialized Form javadoc for JMX API should list serialVersionUID of all serializable classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 5.0, 6
    • core-svc
    • b63
    • generic, sparc
    • generic, solaris_2.6
    • Verified

      Version 1.0 of the JMX API did not explicitly specify the serial form of all classes, and this form was essentially incorrect for certain classes. Version 1.1 of the API rectified this by defining the serial form explicitly for all classes. At this time code was introduced to allow continued serial interoperation with the 1.0 classes if a system property is specified. The serialVersionUID of the relevant classes is different when the property is present than when it is absent. Since the serialVersionUID is not a compile-time constant, it does not appear in the Javadoc output for these classes. The classes should be augmented with appropriate @serial tags so that the correct serialVersionUID appears in the documentation. Otherwise compatible implementations need to analyse the Reference Implementation (e.g. with the serialver tool) in order to determine the correct value.
      ###@###.### 2005-04-12 12:33:27 GMT

            jferaud Joel Feraud (Inactive)
            emcmanus Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: