Bug 34896 - compiler setting "unused private fields"
Summary: compiler setting "unused private fields"
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.0 M1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 35818 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-13 05:39 EST by Ilja Preuss CLA
Modified: 2003-06-06 09:35 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilja Preuss CLA 2003-03-13 05:39:17 EST
"unused private fields" should already get a warning/error, if the field isn't 
*read* once, similar to unused local variables.

Currently, if a field is only "used" to initialize it in the constructor, for 
example, you don't get notified.
Comment 1 Philipe Mulet CLA 2003-03-17 05:00:03 EST
Will reconsider post 2.1
Comment 2 Philipe Mulet CLA 2003-04-01 04:29:49 EST
*** Bug 35818 has been marked as a duplicate of this bug. ***
Comment 3 Philipe Mulet CLA 2003-04-02 06:45:54 EST
reopen
Comment 4 Philipe Mulet CLA 2003-04-03 06:18:45 EST
Fixed, also changed the error message to read "The private X is never read 
locally".
Comment 5 Channing Walton CLA 2003-04-03 10:36:13 EST
Excellent, thanks.
Comment 6 David Audel CLA 2003-06-06 09:35:23 EDT
Verified.