Bug 112179 - [content assist] Invalid Suggestion in the Auto-Complete List
Summary: [content assist] Invalid Suggestion in the Auto-Complete List
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M6   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 110181
Blocks:
  Show dependency tree
 
Reported: 2005-10-11 05:32 EDT by Hosam CLA
Modified: 2008-04-09 11:52 EDT (History)
1 user (show)

See Also:


Attachments
Screenshot for the error (2.90 KB, image/png)
2005-10-11 05:33 EDT, Hosam CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hosam CLA 2005-10-11 05:32:51 EDT
As you can see in the screenshot, I'm standing after the first character of the
method and pressing Ctrl+Space to invoke auto-complete. I expect to be presented
only with valid completions, but the "lazy" template is not one of them in this
context (actually it would introduce compilation errors).

This is always reproducible.
Comment 1 Hosam CLA 2005-10-11 05:33:09 EDT
Created attachment 28108 [details]
Screenshot for the error
Comment 2 Martin Aeschlimann CLA 2005-10-11 10:05:09 EDT
Depends on bug 110181: more context information from the jdt.core infrastructure.
Comment 3 Martin Aeschlimann CLA 2008-04-09 11:52:08 EDT
fixed in 3.4 M6 with the new template locations. lazy is now in the 'Java statement' context and only shows up when completing statements.

Note that if you made changes to the template you'll have to go to the template page and manually set the context to 'Java statement'