Bug 25885 - Code Assist - exact expected type should be more relevant than subtype
Summary: Code Assist - exact expected type should be more relevant than subtype
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: 2.1 M3   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-08 08:00 EST by David Audel CLA
Modified: 2002-11-13 05:25 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-11-08 08:00:42 EST
1) create class X1
public classs X1 {}
2) create class X2
public class X2 extends X1 {}
3) create class Y
public class Y {
   X2 var1;
   X1 var2;
   X1 foo() {
      return var<cursor>
   }
}
4) do ctrl+space at cursor location
'var1' is on the top of the completions list. I'd like to see 'var2' as first 
proposal.
Comment 1 David Audel CLA 2002-11-08 09:52:27 EST
Fixed.
Comment 2 David Audel CLA 2002-11-13 05:25:01 EST
Verified.