Bug 19254

Summary: Some local variable completion proposals are missed
Product: [Eclipse Project] JDT Reporter: Erich Gamma <erich_gamma>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: skeet
Version: 2.0   
Target Milestone: 2.0 F3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Erich Gamma CLA 2002-06-05 01:57:51 EDT
------- Additional Comments From Jon Skeet 2002-06-04 03:39 -------

This doesn't seem to work for me in F2. Sample program:

public class Test 
{
    public static void main (String[] args)
    {
        int abc=0;
        int ABC=0;
        int AbC=0;
        
        int x = Ab(CURSOR HERE)
    }
}

Pressing ctrl-space gives loads of classes before abc, and doesn't list ABC or
AbC at all.

Note - it would be nice to also prefer "local" things (eg local/class/instance
variables, methods) to classes, as this is much more common.

Further bug (possibly part of a bigger problem, no idea!): hitting backspace
twice in the above example (after hitting ctrl-space, of course) presents a
smaller selection - typing Ab in afterwards should get back to the original
list, I'd have thought.
Comment 1 Erich Gamma CLA 2002-06-05 02:02:15 EDT
should investigate for F3, code assist is an area were we should shoot for zero 
defects.
Comment 2 David Audel CLA 2002-06-05 05:22:44 EDT
When already found local variables are compared to the current proposal, case 
is ignored.

Fixed.

The second problem is not a bug. If completion token is empty then only types 
of the currrent completion unit are suggested.
Comment 3 David Audel CLA 2002-06-13 05:19:37 EDT
Verified.