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

Bug 351235

Summary: Indigo doesn't respect the rules for serialVersionUID for warnings
Product: [Eclipse Project] JDT Reporter: Dave Brosius <dbrosius>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: dbrosius, Olivier_Thomann
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Dave Brosius CLA 2011-07-05 16:45:56 EDT
Build Identifier: 20110615-0604

Indigo is emitting these warnings for serialVersionUID

The field XXX.serialVersionUID is hiding a field from type ParentXXX
and
The value of field XXX.serialVersionUID is not used

both are always bogus warnings. This wasn't reported in Helios.

Reproducible: Always

Steps to Reproduce:
1. Add two classes in a hierarchy
2. Add serial version uids to both
3. turn on the appropriate compiler warnings in indigo
Comment 1 Olivier Thomann CLA 2011-07-05 20:22:03 EDT
Are both classes serializable ?
Comment 2 Dave Brosius CLA 2011-07-05 23:34:46 EDT
Ah! these classes where once derived from a JPanel which is Serializable, but had since been refactored so that was not the case. 

So not a bug... altho a warning like, this class doesn't really need a serialVersionUID field, would be better.

thanks.