Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 94329

Summary: Fix build warnings.
Product: z_Archived Reporter: Paul Slauenwhite <paulslau>
Component: TPTPAssignee: Julien Canches <julien.canches>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 95214    
Attachments:
Description Flags
Build warnings none

Description Paul Slauenwhite CLA 2005-05-10 10:14:35 EDT
Add serialVersionUIDs for classes that implement java.io.Serializable.

The following scenarios should specify a serialVersionUID:

-Classes that implement java.io.Serializable.
-Classes that implement interfaces that extend java.io.Serializable.
-Classes that extend other classes that fulfill the above criteria (e.g. 
extending java.lang.Throwable).

The serialVersionUID is a stream-Unique Identifier (SUID) for Java binary de-
serialization of a class.  If the serialVersionUID is not specified, the JVM 
will compute it automatically based on fields and methods in the class.  If a 
compatible change is introduced between releases, the Java binary de-
serialization of the class would be broken between releases.  The value of the 
serialVersionUID MUST not be modified unless an incompatible change is 
introduced.      

See the 'Java Object Serialization Specification' for more details.

Compatible changes include:
-Adding, modifying access or modifying static/transient to non-static/non-
transient of fields.
-Adding or removing classes.
-Adding or removing writeObject/readObject methods.
-Adding java.io.Serializable inheritance.

Incompatible changes include:
-Deleting, modifying non-static/non-transient to static/transient or modifying 
the declared type of fields.
-Modifying the hierarchy or interchanging/removing 
java.io.Serializable/java.io.Externalizable inheritance of the class.
-Modifying writeObject/readObject methods.
-Adding writeReplace/readResolve methods.

The serialVersionUID can be generated using the <JDK home>/bin/serialver.exe 
utility.

Affected plug-in(s)/JAR(s) include:

org.eclipse.hyades.test.tools.ui (tools-ui.jar)
org.eclipse.hyades.test.tools.ui (http-hexrecl.jar)
Comment 1 Dominique Guilbaud CLA 2005-05-17 11:53:59 EDT
Verified that project org.eclipse.hyades.test.tools.ui has no such missing
serialVersionUID.
Comment 2 Paul Slauenwhite CLA 2005-05-17 11:58:03 EDT
Fix build warnings in attached file.
Comment 3 Paul Slauenwhite CLA 2005-05-17 11:58:29 EDT
Created attachment 21267 [details]
Build warnings
Comment 4 Julien Canches CLA 2005-05-19 05:09:38 EDT
Removed warnings raised by JDT's default detection level.
Comment 5 Paul Slauenwhite CLA 2005-05-24 08:32:55 EDT
Verified in the TPTP 4.0 (200505240100) build on May 24, 2005.
Comment 6 Paul Slauenwhite CLA 2005-05-24 08:33:01 EDT
Closing.