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

Summary: No usages found for DocumentFinder.FindReplaceResult
Product: apisupport Reporter: Jesse Glick <jglick>
Component: ProjectAssignee: Jesse Glick <jglick>
Status: CLOSED FIXED    
Severity: blocker CC: mmatula
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 68727    
Bug Blocks:    

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.