JDK-5010245 : Javadoc doesn't specify serialVersionUID for javax.sql.rowset.* classes
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.sql
  • Affected Version: 5.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_2.6
  • CPU: sparc
  • Submitted: 2004-03-09
  • Updated: 2004-03-16
  • Resolved: 2004-03-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.0Fixed
Related Reports
Relates :  
Description

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.

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

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.0 tiger-beta2 FIXED IN: 1.0 INTEGRATED IN: tiger-beta2
14-06-2004

EVALUATION Will add UID to each class. ###@###.### 2004-03-09 Name: ygR10224 Date: 03/11/2004 Class javax.sql.rowset.RowSetMetaDataImpl still hasn't explicitely defined serialVersionUID in the latest build. ====================================================================== Added missing serialVersionUID - this was accidentally added to an inner class. Now fixed. ###@###.### 2004-03-11
11-03-2004