| Summary: | [content assist] Identical proposals for methods of this and Outer.this | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Andreas Sewe <sewe> |
| Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | noopur_gupta |
| Version: | 4.5 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | stalebug | ||
The second proposal returns "Outer.this.toString()" via CompletionProposal.getCompletion(). See JavaMethodCompletionProposal.appendMethodNameReplacement(StringBuffer buffer) where the replacement string is added just from the method name. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |
(Tested with the Eclipse Standard 4.5.0 M1 package.) Triggering Content Assist in the indicated place public class Outer { public void test() { new Object() { public String toString() { toString<Ctrl+Space> return ""; } }; } } offers two seemingly identical proposals of toString() : String - Object Moreover, *both* expand to toString() I would expect at least one of them to expand to Outer.this.toString() which is, I think, what the second proposal is meant to stand for.