Bug 116733 - SerialVersionUID Warning does not show for Abstract Classes
Summary: SerialVersionUID Warning does not show for Abstract Classes
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 17:12 EST by Tom Lien CLA
Modified: 2006-11-15 17:36 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Lien CLA 2005-11-16 17:12:49 EST
When I enable the serialversionuid warnings for Serializable classes, it does
not warn about this for abstract classes. These are just as important as the
concrete classes they inherit from for determining serial compatibility. Example:

public abstract class AbstractSerialTest implements java.ioSerializable {
}

If I remove the abstract keyword it warns properly.
Comment 1 Olivier Thomann CLA 2006-10-10 13:04:12 EDT
Since abstract classes cannot be instantiated, I don't see why you would need the serialVersionUID field. Concrete subclasses of abstract classes will need it.
Ok to close?
Comment 2 Olivier Thomann CLA 2006-11-15 17:36:58 EST
Closing as INVALID.