Bug 25885

Summary: Code Assist - exact expected type should be more relevant than subtype
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.