Bug 341475 - Eclipse doesn't show a "never read locally" warning if a private field serialVersionUID exists but the class does not implement Serializable
Summary: Eclipse doesn't show a "never read locally" warning if a private field serial...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 trivial (vote)
Target Milestone: 3.7 M7   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-31 08:42 EDT by ivan.vergiliev CLA
Modified: 2011-04-25 14:01 EDT (History)
3 users (show)

See Also:


Attachments
Proposed fix + regression tests (3.91 KB, patch)
2011-03-31 10:36 EDT, Olivier Thomann CLA
no flags Details | Diff

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