Community
Participate
Working Groups
I20060117-0800 Content Assist in inner class offers Object methods twice. This doesn't make sense unless one of the proposals explicitly targets the outer class (e.g. "Try.this.getClass()") and indicates this in the label. public class Try { private class Inner { public void run() { // content assist here } } }
No regression - this is the case since at least eclipse 3.1. Moving to jdt-core as I think that core should not be proposing hidden methods from the enclosing type without qualification.
Reproduced with latest.
The completions proposed by JDT Core are correct, see bug 19892. However, currently it is hard for us to deal with this: we would have to parse the completion string for .this. and figure out the receiver from that string. JDT Core should provide us with the receiver information, e.g. by reusing CompletionProposal.getReceiverSignature() which got introduced in 3.4 or providing the information via new API. That information would be empty/null in the normal case and contain the receiver type for cases like the one described in this bug.
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. If you have further information on the current state of the bug, please add it. 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.