Bug 8878 - Code assist provides arbitrary, invalid choice after a space
Summary: Code assist provides arbitrary, invalid choice after a space
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC other
: P2 normal (vote)
Target Milestone: 2.0 M3   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-31 15:56 EST by Peter Burka CLA
Modified: 2002-02-07 09:51 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 Peter Burka CLA 2002-01-31 15:56:04 EST
Enter the text (including the trailing space) 'Foo.xy ' into the body of a 
method in an Eclipse .java editor.  After the trailing space, press Ctrl+Space 
for Code Assist.  The only option it will offer is 'xy - Foo.xy'.  I don't even 
have a class named Foo, and it probably wouldn't have an 'xy' field even it did 
exist.

This choice of option seems completely arbitrary, and I can't imagine it ever 
being useful.

The only text which would be synactically correct in this spot would, I 
believe,  be an operator, a semicolon or a comment.
Comment 1 Philipe Mulet CLA 2002-02-01 13:10:09 EST
This is a variable name suggestion, but it should only be triggered if the 
declaring class is defined.

David - a binding check would make sense here.
Comment 2 David Audel CLA 2002-02-07 09:51:21 EST
binding check added