Bug 24565

Summary: CodeAssist proposing twice the same method
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Philipe Mulet CLA 2002-10-09 09:12:25 EDT
Build 20021008

On the following test case, I am getting twice "hashCode()" method completions.

interface A {
	int hashCode();
}
interface B extends A {
}
class C implements B {
	public int hashCode(){
		return super.hashCode();
	}
}

public class Test {
	public static void main(String[] arguments) {
		C c = new C();
		System.out.println("((A)c).hashCode() : "+ ((A)c).hash<CODE 
ASSIST>
	}
}
Comment 1 David Audel CLA 2002-10-30 07:12:35 EST
CompletionEngine does not detect if two methods are identical when one is 
inside 'Object' and the other is inside an interface.

Fixed.
Comment 2 David Audel CLA 2002-11-13 05:42:36 EST
Verified.