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 253020 - Find usages does not find all occurrences when using scope Open Projects
Summary: Find usages does not find all occurrences when using scope Open Projects
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-16 11:52 UTC by terje7601
Modified: 2015-07-21 10:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (218.21 KB, application/octet-stream)
2015-06-16 11:52 UTC, terje7601
Details

Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2015-06-16 11:52:25 UTC
Created attachment 154244 [details]
IDE log

This is another occurrence of issue 226803, where scope Open Projects does not find all usages:

I have a Java Maven project X, with a dependency on project Y. In project X, I navigate to a class in project Y (which opens it as read-only & points to an entry in a sources jar in my local .m2 Maven repository), and then do "Find Usages" on a method in project Y:

with "Custom Scope..." and only selecting project X: all results are found
with "Open Projects": no results are found


The IDE log is in attachment. I tried to find a simple way to reproduce, but failed to do so.


Product Version: NetBeans IDE Dev (Build 201505270357)
Updates: Updates available
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 terje7601 2015-06-16 12:11:42 UTC
For your info, with "Custom Scope..." and selecting all open projects, it still finds all results. So this issue could be fixed, by simply using the same method for "Open Projects.
Comment 2 Ralph Ruijs 2015-07-21 10:23:45 UTC
Should be fixed by 40ddb619b1be