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 - "Where used" refactor feature failure
Summary: "Where used" refactor feature failure
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-10 12:24 UTC by Vladimir Hudec
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.