Bug 33445

Summary: CodeAssist - Relevance is not correct for local class
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: 2.1   
Target Milestone: 2.1 RC2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.