Bug 9593 - SelectionEngine give more results than expected
Summary: SelectionEngine give more results than expected
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 2.0 M4   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-13 09:15 EST by David Audel CLA
Modified: 2002-02-28 06:13 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 David Audel CLA 2002-02-13 09:15:44 EST
1) create a class Y
package p1;
public class Y {}
2) create another class Y in another package
package p2;
public class Y{}
3) create a class X
import p2.Y;
public class X{
   /* return Y */
   Y foo(){
      return null;
   }
}

4) select return type of foo and do F3
p2.Y is selected.

5) select Y in the comment and do F3
p1.Y and p2.Y are suggested.
Comment 1 David Audel CLA 2002-02-28 05:20:14 EST
Propose the unqualified type.
If there is no unqualified type then propose all qualified types

Fixed