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.
Product Version: NetBeans IDE Dev (Build 201206260002) Java: 1.7.0_05; Java HotSpot(TM) Client VM 23.1-b03 System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb) Sometimes "Find usages" doesn't find any occurrences of a method, even though there is some. This problem is reproducible only on W7 in virtual box, but I am able to reproduce it manually and with NetBeans Functional tests. Unfortunately there are no certain steps to reproduce but you can try these: 1.Start IDE, create AnagramGame sample project and open StaticWorldLibrary.java 2.Invoke pop-up menu on getScrambledWord method and select Find usages 3.Find (Results are ok) 4.Use refresh button or invoke the pop-up menu again 5.Change scope or change "Find Usages" to "Find Usages and Overriding Methods" 6.Find 7.Repeat steps 4-6 for several times and then try to Find usages of some other method. I will add an screenshot that clarifies the problem. I will also add message.log, there are some warnings. Is there any switch that add some logging that can help you?
Created attachment 121377 [details] Bad results, screenshots
Created attachment 121381 [details] messages.log
Not a stopper for 7.2, but it should be fixed in 7.2.1.
Caused by fix of #211748
Changeset: c48a55de4d73 Author: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Date: 2012-07-04 14:06 Message: Issue #214793 - Find Usages - bad results [find 0 occurences]
Integrated into 'main-golden', will be available in build *201207080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c48a55de4d73 User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: Issue #214793 - Find Usages - bad results [find 0 occurences]
Product Version: NetBeans IDE Dev (Build 201207090002) Java: 1.7.0_05; Java HotSpot(TM) Client VM 23.1-b03 System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb) Reopen. "Find Usages" returns the correct number of usages, but sometimes there are no nodes in result window.
Created attachment 121819 [details] FU -correct result, no nodes
The problem is with scope:Current File Steps to reproduce: 1.Create AnagramGame project 2.Open com.toy.anagrams.lib.StaticWordLibrary.java 3. Select getScrambledWord(int idx) method 4.Find Usages -> Find 5.Click on "Refresh the refactoring data" button 6.Change the scope of FU on "current file" 7.Find Result: The number of occurrences is bad (is the same as it was in previous result) and there are no result nodes
Changeset: bfdd778e53be Author: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Date: 2012-08-07 14:08 Message: Issue #214793 - Find Usages - bad results [find 0 occurences]
Sorry, last fix breaks the number of occurrences when changing view.
changeset : 9002266942ef author : Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> date : Thu Aug 09 11:20:52 CEST 2012 summary : Issue #214793 - Find Usages - bad results [find 0 occurences]
Integrated into 'main-golden', will be available in build *201208100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/bfdd778e53be User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: Issue #214793 - Find Usages - bad results [find 0 occurences]
*** Bug 216871 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201208150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/9002266942ef User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: Issue #214793 - Find Usages - bad results [find 0 occurences]
verified in trunk Product Version: NetBeans IDE Dev (Build 201208150001) Java: 1.7.0_06; Java HotSpot(TM) Client VM 23.2-b09 System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/5cac3c83a286 User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: Issue #214793 - Find Usages - bad results [find 0 occurences]