Bug 52868 - check for unused or unread private members fails
Summary: check for unused or unread private members fails
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.0 M8   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 52870 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-23 16:40 EST by Sebastian Dietrich CLA
Modified: 2004-03-22 12:23 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Dietrich CLA 2004-02-23 16:40:58 EST
Java Compiler / Unused Code / Check for unused or unread private members = 
Warning

==> many used attributes are found
e.g.
public class ErrorConstant {
    private int id;
    private String msg;

    public ErrorConstant(int id, String msg) {
        this.id = id;
        this.msg= msg;
    }
...
==>The private field ErrorConstant.id is never read locally

found in M6 & M7
Comment 1 John Arthorne CLA 2004-02-23 16:44:28 EST
*** Bug 52870 has been marked as a duplicate of this bug. ***
Comment 2 Philipe Mulet CLA 2004-02-23 18:18:10 EST
In the code sample, where are the fields read from ? The warning indicates that 
the field is never referenced from a read access.
Comment 3 Sebastian Dietrich CLA 2004-02-24 02:56:13 EST
Sorry - the error message was ok - my fault