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

Javadoc doesn't specify serialVersionUID for javax.sql.rowset.* classes

XMLWordPrintable

    • beta2
    • sparc
    • solaris_2.6



        Name: ygR10224 Date: 03/09/2004


        Filed By : SPB JCK team (###@###.###)
        JDK :
        JCK : 1.5
        Platform[s] : Solaris
        switch/Mode :
        JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
        Failing Test [s] : N/A


        Specification excerpt:
        ======================
        --------- J2SE API spec v.1.5 ---------
        Javadoc for java.io.Serializable says:
        ...
        it is strongly recommended that all serializable classes explicitly
        declare serialVersionUID values, since the default serialVersionUID
        computation is highly sensitive to class details that may vary depending
        on compiler implementations, and can thus result in unexpected
        InvalidClassExceptions during deserialization. Therefore, to guarantee
        a consistent serialVersionUID value across different java compiler
        implementations, a serializable class must declare an explicit
        serialVersionUID value. It is also strongly advised that explicit
        serialVersionUID declarations use the private modifier where possible,
        since such declarations apply only to the immediately declaring
        class--serialVersionUID fields are not useful as inherited members.
        ...
        ---------- end-of-excerpt ---------------

        Problem description
        ===================
        Javadoc doesn't specify the serialVersionUID for any serializable
        classes in the following packages:
          javax.sql.rowset
          javax.sql.rowset.serial
          javax.sql.rowset.spi
        These may result in an unintentional serialization incompatibility
        in the future. According to RFE 4525039 the serialVersionUID
        should be included in the Serialized Form generated for each class.

        ======================================================================

              jbrucesunw Jonathan Bruce (Inactive)
              gyisunw Gyi Gyi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: