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 134433 - find usages does not work
Summary: find usages does not work
Status: RESOLVED DUPLICATE of bug 134000
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-02 21:21 UTC by jn
Modified: 2008-05-05 13:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jn 2008-05-02 21:21:34 UTC
As simple as the summary says:  find usages does not work -- it does not find usages.  I can consistently reproduce this
as follows:

1.  Create a new NetBeans project for existing sources (I have tried "freeform" and also "with existing sources" with
the same result).
2.  Choose a public member of a class which is known to be used by another class within the same project.  Right-click
and choose "find usages".
3.  Accept the find usages dialog (I have tried setting scope to current project or all projects; and checking or
unchecking "search in comments" with the same results).
4.  Result -- the progress bar appears only for a small fraction of a second (whereas when find usages works as
expected, it's obvious because the progress bar takes a while), and then the usages window shows "0 occurrences.

Note that if the member appears in the currently opened class, then the usages in the current class will be found, but
usages in other classes will not be found.

Also note that if I open another class which uses the member, and then I return to the original member and repeat the
"find usages", this time it will find the usage which appears in the newly opened class.  So it appears that NetBeans is
only becoming aware of the usages of a certain class after I explicitly open that class.
Comment 1 Jiri Prox 2008-05-05 13:15:31 UTC
Probably the same problem as issue 134000

*** This issue has been marked as a duplicate of 134000 ***