Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!

Bug 172345

Summary: Rename refactoring leads to compilation error when applied on a method in a complex class hierarchy
Product: java Reporter: vilasshekharbj <vilasshekharbj>
Component: RefactoringAssignee: issues <issues.netbeans.org>
Status: RESOLVED DUPLICATE QA Contact: issues <issues.netbeans.org>
Priority: P2    
Version: 6.x   
Target Milestone: TBD   
Hardware: PC   
OS: Linux   
Whiteboard:
Issue Type: DEFECT Exception Report:

Description vilasshekharbj 2009-09-16 03:04:47 UTC
Apply the rename refactoring on B.m() in the following code and rename it to 'p':

interface B {
  public void m();
}
interface A {
  public void m();
}
class C implements A, B {
  public void m(){}
}

The refactoring fails to detect that it should also rename A.m() and leads to the following code that does not compile:

interface B {
  public void p();
}
interface A {
  public void m();
}
class C implements A, B {
  public void p(){}
}
Comment 1 vilasshekharbj 2009-09-16 03:05:10 UTC
*** Issue 172344 has been marked as a duplicate of this issue. ***
Comment 2 Jiri Prox 2009-09-16 11:16:40 UTC
This is already filed, but IMHO it is not so frequent test case

*** This issue has been marked as a duplicate of 111953 ***
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo