Bug 48752

Summary: Completion: relevance could be improved for non static field
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M9   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description David Audel CLA 2003-12-15 10:00:43 EST
1) create Y.java
public class Y {
  public static Ii0 = 0;
  public Object ii1;
}
2) create X.java
public class X {
  void foo() {
    Y var = null;
    int i = 0 + var.ii<cursor>
  }
}
3) do ctrl+space at cursor location

Ii0 is more relevant than ii1. ii1 would be more relevant.
Comment 1 David Audel CLA 2004-05-12 10:21:30 EDT
I increased the relevance of non static field
before
R_CASE = 10
R_NON_STATIC = 10

now
R_CASE = 10
R_NON_STATIC = 11

Fixed and test added
  CompletionTests#testCompletionNonStaticFieldRelevance()
Comment 2 Olivier Thomann CLA 2004-05-18 11:26:12 EDT
Verified in 200405180816