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 172345 - Rename refactoring leads to compilation error when applied on a method in a complex class hierarchy
Summary: Rename refactoring leads to compilation error when applied on a method in a c...
Status: RESOLVED DUPLICATE of bug 111953
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
: 172344 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-16 03:04 UTC by vilasshekharbj
Modified: 2009-09-16 11:16 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 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 ***