Bug 341475

Summary: Eclipse doesn't show a "never read locally" warning if a private field serialVersionUID exists but the class does not implement Serializable
Product: [Eclipse Project] JDT Reporter: ivan.vergiliev
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: trivial    
Priority: P3 CC: ivan.vergiliev, jarthana, Olivier_Thomann
Version: 3.7   
Target Milestone: 3.7 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix + regression tests none

Description ivan.vergiliev CLA 2011-03-31 08:42:13 EDT
Build Identifier: 20101203_0655

I'm not sure if there is some argument for keeping the serialVersionUID in case the class becomes Serializable again later, but it looks like a bug to me.

Thanks.

Reproducible: Always

Steps to Reproduce:
1. Create a non-serializable class with a private field serialVersionUID
Expected: The field is not used anywhere, so a warning should be shown.
Actual: No warning is shown because of the field's name.
Comment 1 Olivier Thomann CLA 2011-03-31 10:36:32 EDT
Created attachment 192281 [details]
Proposed fix + regression tests
Comment 2 Olivier Thomann CLA 2011-03-31 10:36:59 EDT
Released for 3.7M7.
Comment 3 Jay Arthanareeswaran CLA 2011-04-25 14:01:01 EDT
Verified for 3.7M7 using build I20110421-1800