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 36000

Summary: "Where used" refactor feature failure
Product: java Reporter: Vladimir Hudec <vhudec>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED INVALID    
Severity: blocker    
Priority: P2    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Hudec 2003-09-10 12:24:37 UTC
In the code bellow "where used" refactor function
finds for the myClassMethod method
only one occurence. As a consequence, also
"Change method signature" change method only
on one place.

Code:
package org.sun;
                                                 
                                                 
                                                   
class TestClass {
    public interface MyInterface {
        public void myInterfaceMethod(int arg);
    }
    public TestClass() {
    }
                                                 
                                                 
                                                   
    public void run() {
        myClassMethod( new MyInterface() {
            public void myInterfaceMethod(int arg) {
                System.out.println("arg is "+arg);
            }
        });
    }
                                                 
                                                 
                                                   
    public void myClassMethod(MyInterface mi) {
        mi.myInterfaceMethod(0);
    }
    public static void main(String[] args) {
        TestClass test = new TestClass();
        test.run();
    }
}
Comment 1 Vladimir Hudec 2003-09-12 16:06:08 UTC
To be more precise, only definition of myClassMethod is 
refactored.
Comment 2 Vladimir Hudec 2003-09-15 15:32:12 UTC
Improper formulated report.