Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 85320

Summary: [change method signature] doesn't warn of collision
Product: [Eclipse Project] JDT Reporter: John Arthorne <john.arthorne>
Component: UIAssignee: 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:

Description John Arthorne CLA 2005-02-15 15:27:22 EST
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); 
}
Comment 1 Markus Keller CLA 2007-05-07 12:06:52 EDT

*** This bug has been marked as a duplicate of bug 58616 ***