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 172344

Summary: Rename refactoring leads to compilation error when applied on complex class hierarchy
Product: java Reporter: vilasshekharbj <vilasshekharbj>
Component: RefactoringAssignee: issues@java <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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

interface B {
  public B m();
}
interface C {
  public C m();
}
class A implements C, B {
  public A m(){
    A a=null;
    return a;
  }
}

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

interface B {
  public B p();
}
interface C {
  public C m();
}
class A implements C, B {
  public A p(){
    A a=null;
    return a;
  }
}
Comment 1 vilasshekharbj 2009-09-16 03:05:10 UTC

*** This issue has been marked as a duplicate of 172345 ***