This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 28135 - Clean unused ClassDescriptors
Summary: Clean unused ClassDescriptors
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-20 21:14 UTC by Tomas Hurka
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2002-10-20 21:14:38 UTC
We need to watch for ClassDescriptor objects, which are 
not referenced by any ClassFeature object inside one 
Codebase. Such ClassDescriptors have to be removed from 
Codebase since they are no longer needed. Some possible 
solutions follow.
1. Create dedicated thread to continuously scan all 
codebases for unused ClassDescriptors. 
2. Modify code, which removes ClassDescriptor from any of 
its relations. Such a code will check whether the relation 
is empty and if so, it will also check all other relations 
of affected ClassDescriptor. If all relations are empty, 
this code removes such a ClassDescriptor from MDR.
3. Clean unused ClassDescriptor on demand. This solution 
assumes that there is no need to automatically clean 
unused ClassDescriptors and that on-demand cleaning is 
sufficient.
Comment 1 Martin Matula 2003-01-13 10:46:33 UTC
implemented