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 56457 - No usages found for DocumentFinder.FindReplaceResult
Summary: No usages found for DocumentFinder.FindReplaceResult
Status: CLOSED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 52204 (view as bug list)
Depends on: 68727
Blocks:
  Show dependency tree
 
Reported: 2005-03-15 14:28 UTC by Jesse Glick
Modified: 2006-03-24 12:45 UTC (History)
1 user (show)

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 Jesse Glick 2005-03-15 14:28:01 UTC
Recent dev builds, JDK 1.6.0. Open editor/lib project. Open DocumentFinder.java
and move caret to FindReplaceResult. (Alt-Shift-O on "FindReplaceResult" works
fine if nested classes are included.) Press Alt-F7 to find usages of the class.
No hits are shown. This is nonsense, as there are several usages even within the
same source file.
Comment 1 Jan Becicka 2005-03-15 14:36:06 UTC
I remember, that there was some problem with nb-project setup of editor/lib
project. I'm not sure if it is this case, but
FileOwnerQuery.getOwner(fileObject) for fileObjects from editor/lib project
returned "Editor" project and not "Editor Library" project.
Comment 2 Martin Matula 2005-03-15 14:49:09 UTC
The problem is that we are restricting usages to the projects that depend on the
owner project of a file (to speed up the performance). However in this case the
project system seems to return incorrect owner project - for any files from
editor/lib project it returns
"NbModuleProject[MasterFileObject@1c6b6ec[file:/mnt/work/sources/nb_all/editor/]]"
(taken from debugger). So I guess this is a bug in the project system.
Comment 3 Jesse Glick 2005-03-15 15:43:07 UTC
Ah, I see. NBM project type bug.
Comment 4 Jesse Glick 2005-03-15 16:03:56 UTC
Have patch for root cause, and it does fix this bug. Thanks for tip.
Comment 5 Jesse Glick 2005-03-18 00:23:16 UTC
committed   * Up-To-Date  1.50       
apisupport/project/src/org/netbeans/modules/apisupport/project/NbModuleProject.java
committed   * Up-To-Date  1.8        
apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/NbModuleProjectTest.java
Comment 6 Jesse Glick 2005-04-02 23:24:03 UTC
*** Issue 52204 has been marked as a duplicate of this issue. ***
Comment 7 Jaromir Uhrik 2005-07-14 16:19:00 UTC
Verified.