| Summary: | [change method signature] doesn't warn of collision | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | John Arthorne <john.arthorne> |
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux-GTK | ||
| Whiteboard: | |||
Build: I20050215-1200 1) Create the following interface: public interface InYourFace { public void foo(); public void foo(int i); } 2) Do a Refactor > Change Method signature on the foo() method (zero args) 3) Add a new parameter of type int 4) Preview -> Doesn't show any problems 5) Apply the refactoring -> The refactoring didn't complain, but now I have a type with two identical methods, which is a compile error: public interface InYourFace { public void foo(int j); //duplicate method error public void foo(int i); }