Bug 65259 - CodeSelect should only find one match for dup methods
Summary: CodeSelect should only find one match for dup methods
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 RC2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-02 06:25 EDT by Philipe Mulet CLA
Modified: 2004-06-11 09:45 EDT (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 2004-06-02 06:25:40 EDT
Build 3.0RC1

On following source, selecting first method and pressing F3 should not offer 2 
methods. Only the one with occurrence count #1 should be offered.

public class X {
		void foo() {}
		void foo() {}
}
Comment 1 David Audel CLA 2004-06-03 10:16:19 EDT
What result do you expect if you select the second method ?
Comment 2 David Audel CLA 2004-06-08 07:06:37 EDT
When you select the first method the result is foo()#1
When you select the second method the result is foo()#2

Fixed and test added
  ResolveTest#testDuplicateMethodDelcaration()
  ResolveTest#testDuplicateMethodDelcaration2()
Comment 3 Olivier Thomann CLA 2004-06-11 09:45:47 EDT
Verified in 200406110010