Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Dmitry Jemerov 
Subsystem
Refactoring 
Affected versions
Fixed in
Fixed in build
Next build 
Build
7718
Fixed in build
8576
Severity
0
  • Submitted by   Esko Luontola
    23 months ago (24 Feb 2008 14:28)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:58)
  • Jira: IDEA-43057
    (history, comments)

IDEA-43057

Rename interface method breaks code: renaming method to lowercase changes only the interface and not the implementations

1
Given the code
public class Test implements ITest {

    public void Foo() {
    }
}

interface ITest {
    void Foo();
}


When rename method (Shift+F6) is used on Test.Foo(), the user selects "Yes" at "Do you want to rename the base method?", and then renames the method from "Foo" to "foo", the resulting code will not compile:

public class Test implements ITest {

    public void Foo() {
    }
}

interface ITest {
    void foo();
}


Issue was resolved
Comments (0)
 
History (1)
 
Links
 
Issue has no comments