Bug 43354 - CodeAssist relevance should privilege package completion over type name
Summary: CodeAssist relevance should privilege package completion over type name
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 M6   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-19 10:54 EDT by Philipe Mulet CLA
Modified: 2003-12-16 11:35 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 Philipe Mulet CLA 2003-09-19 10:54:22 EDT
Build 3.0M3

On the following code, the core package should be a better match than the type 
Dummy (which doesn't need any qualification anyway).

package org.eclipse.jdt.internal.core.dummy; 
class X {
  {
    System.out.println(org.eclipse.jdt.internal.co<CODEASSIST HERE>
  }
}
Comment 1 David Audel CLA 2003-12-11 10:24:18 EST
Now, unqualified proposals are less relevant if completion token is qualified.

Fixed and test added.

CompletionTests#testCompletionPackageAndClass1
CompletionTests#testCompletionPackageAndClass2
Comment 2 Frederic Fusier CLA 2003-12-16 11:35:36 EST
Verified with build I200312160010