| Summary: | [content assist] for method invocation in variable initializer should not guess variable | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> |
| Component: | Core | Assignee: | David Audel <david_audel> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert |
| Version: | 3.5 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
org.eclipse.jdt.core.CompletionContext.getVisibleElements(String) should not return them. *** This bug has been marked as a duplicate of bug 236306 *** |
I20081104-0916, same in 3.4 Enable content assist preference to insert best guessed arguments. Have: import java.text.MessageFormat; public class Try { public static void main(String[] args) { String fooBar= "Hi"; String furchtbar= MessageFormat.format| } } At location of |, invoke content assist. Result: String furchtbar= MessageFormat.format(furchtbar, args) The variable 'furchtbar' should not be guessed, since it is out of scope. Same problem inside field initializers.