Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351235 - Indigo doesn't respect the rules for serialVersionUID for warnings
Summary: Indigo doesn't respect the rules for serialVersionUID for warnings
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-05 16:45 EDT by Dave Brosius CLA
Modified: 2011-07-05 23:35 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.