Bug 112173 - [content assist] Invalid Suggestion for Fill Arguments
Summary: [content assist] Invalid Suggestion for Fill Arguments
Status: RESOLVED INVALID
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: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on: 110181
Blocks:
  Show dependency tree
 
Reported: 2005-10-11 05:17 EDT by Hosam CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments
Screenshot for the error (9.09 KB, image/png)
2005-10-11 05:18 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:17:28 EDT
The attached screenshot was taken after typing "periods." and selecting the add
method. As you can see, the suggestion made by eclipse is invalid, as the
variable "m" is out of scope.

This is always reproducible.
Comment 1 Hosam CLA 2005-10-11 05:18:20 EDT
Created attachment 28107 [details]
Screenshot for the error
Comment 2 Tom Hofmann CLA 2005-10-11 10:10:39 EDT
Depends on bug 110181: more context information from the jdt.core infrastructure:

- we don't typically know which local variables are in scope as the source does
not compile when you invoke content assist (missing semicolons and such). If the
completion context would provide the visible local variables we could filter
based on that information.

Comment 3 Tom Hofmann CLA 2005-12-05 04:00:27 EST
Closing as remind until bug 110181 is fixed.
Comment 4 Dani Megert CLA 2007-06-22 09:59:28 EDT
Get rid of deprecated state.
Comment 5 Dani Megert CLA 2007-06-22 10:04:40 EDT
.