Bug 114554 - detect unused member closure
Summary: detect unused member closure
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-01 11:07 EST by Tom Hofmann CLA
Modified: 2007-08-31 09:59 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 Tom Hofmann CLA 2005-11-01 11:07:17 EST
3.2 M3 test pass

Now that jdt-ui gave us the clean-up action to in one sweep remove any unsed
members from a CU (or any java element), it would be very nice if the compiler
would detect the closure of unused members. E.g. a private member would be
flagged as unused if it has no references or only references from other unused
members (including cycles...).

Currently, only members without (read) references are found, and I have to
repeatedly apply the clean up until no more unused members are found.
Comment 1 Tom Hofmann CLA 2005-11-01 11:10:15 EST
dup of bug 112561 in a way, but that only mentions cycles, not the closure
problem (which really is only a problem now that you expect everything to be
gone after clean-up has run).
Comment 2 Adam Kiezun CLA 2005-11-02 17:55:44 EST
I suggest merging with bug 112561. Closure is what I really had in mind.