Bug 33445 - CodeAssist - Relevance is not correct for local class
Summary: CodeAssist - Relevance is not correct for local class
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 RC2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-27 11:18 EST by David Audel CLA
Modified: 2003-03-10 06:24 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 2003-02-27 11:18:20 EST
1) create the following class.
public class ZZZ1 {
   class ZZZ2 {
      ZZZ<cursor>
   }
}
2) do ctrl+space at cursor location
there is two result:
ZZZ1 with a relevance of 18
ZZZ2 with a relevance of 15

I think that the relevance of these proposasl should be the same.
Comment 1 Philipe Mulet CLA 2003-02-28 04:31:27 EST
Agreed
Comment 2 David Audel CLA 2003-02-28 05:38:12 EST
Fixed.
Comment 3 David Audel CLA 2003-03-10 06:24:57 EST
Previous test case is not correct.
The correct test case is:

public class ZZZ1 {
   void foo(){
      class ZZZ2 {
         ZZZ<cursor>
      }
   }
}

Verified.