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 218973 - Refactoring "Rename method" on inherited method does not rename method of interface
Summary: Refactoring "Rename method" on inherited method does not rename method of int...
Status: REOPENED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
: 223498 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-25 12:35 UTC by Jachym_Vojtek
Modified: 2015-09-17 11:46 UTC (History)
1 user (show)

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 Jachym_Vojtek 2012-09-25 12:35:16 UTC
public interface I {

    public void foo();
}
--
public class C1 {
  public void foo() {
     
  }    
}
--
public class C2 extends C1 implements I {
    
}
--
public class C3 {
    {
        new C2().foo(); // Perform rename method here
    }
}

Try to rename method C2.foo() to C2.xxx(). 

Method I.foo() will not be renamed along with C1.foo() even though it should be. C2 will not be compilable after this refactoring.
Comment 1 Ralph Ruijs 2012-12-07 19:33:22 UTC
*** Bug 223498 has been marked as a duplicate of this bug. ***
Comment 2 Martin Balin 2015-09-17 11:16:23 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.
Comment 3 Jachym_Vojtek 2015-09-17 11:46:04 UTC
This is simply reproducible in NetBeans IDE Dev (Build 201509150002) as well as 223498, which was marked as duplicate of this one.