Bug 19254 - Some local variable completion proposals are missed
Summary: Some local variable completion proposals are missed
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 F3   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-05 01:57 EDT by Erich Gamma CLA
Modified: 2002-06-13 05:19 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.