Bug 24565 - CodeAssist proposing twice the same method
Summary: CodeAssist proposing twice the same method
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M3   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-09 09:12 EDT by Philipe Mulet CLA
Modified: 2002-11-13 05:42 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.