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 226028

Summary: Find type usages doesn't show usages from static method calls
Product: groovy Reporter: Martin Janicek <mjanicek>
Component: RefactoringAssignee: Martin Janicek <mjanicek>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Martin Janicek 2013-02-12 15:58:56 UTC
In the following code:

package foo

class Tester {

    public static void method() {
        Tester.method()
    }
}

..finding usages for Tester should show one occurrence but doesn't find anything. It seems that class types used for static method call are skipped during the search.
Comment 1 Martin Janicek 2013-02-13 10:45:15 UTC
ElementUtils.getType() returns null because it does not understand that VariableExpression is not a simple variable but a class type.
Comment 2 Martin Janicek 2013-02-14 09:50:55 UTC
Fixed in: web-main #8930301704f3
Comment 3 Quality Engineering 2013-02-15 12:44:21 UTC
Integrated into 'main-golden', will be available in build *201302150954* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/8930301704f3
User: Martin Janicek <mjanicek@netbeans.org>
Log: #226028 - Find type usages doesnt show usages from static method calls