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 241011

Summary: Find Usages seems to be broken
Product: java Reporter: Maksim Khramov <mkhramov>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Maksim Khramov 2014-01-27 14:00:41 UTC
Product Version: NetBeans IDE Dev (Build 201401100002)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b06

Steps to reproduce:
Create java class with some field in it like:

public class JavaApplication9 {
    private static String helloWorld = "Hello World";
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        System.out.println(helloWorld);
    }
    
}

invoke Find Usages command over helloWorld field. Opened Usages tab...
Click on line with System.out.println(helloWorld); code
IDE moves caret at this line.
Close file and click on same line again. No result. And IDE shows message: "The destination was not found" in status line

If now click on refresh button and than click on same line again IDE opens target file and highlights line properly
Comment 1 Maksim Khramov 2014-01-28 08:29:06 UTC
Reproduced with Build 201401100002 with all updates installed but not reproduced on fresh Build 201401280001
Comment 2 David Strupl 2014-02-04 09:11:19 UTC
Ralph, can you please have a look at this one? Thanks.
Comment 3 Ralph Ruijs 2014-02-04 09:38:29 UTC

*** This bug has been marked as a duplicate of bug 240189 ***