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.
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.
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.
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.
Ah, I see. NBM project type bug.
Have patch for root cause, and it does fix this bug. Thanks for tip.
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
*** Issue 52204 has been marked as a duplicate of this issue. ***
Verified.