Bug 48752 - Completion: relevance could be improved for non static field
Summary: Completion: relevance could be improved for non static field
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 M9   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-15 10:00 EST by David Audel CLA
Modified: 2004-05-18 11:26 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 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