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 QA Contact: issues <issues.netbeans.org>
Priority: P3 CC:
Version: 7.3   
Target Milestone: 8.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Issue Type: DEFECT Exception Report:

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
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo