Project: JDT
Bug 151505 [content assist] field names in setters or constructors are not completed by content assist if to be qualified with this
Reported: 2006-07-22 07:15:01 | Status: resolved fixed

From 3.1 on the "this" qualifier is suggested by code assistance when completing on field names that have the same name as constructor or method parameters. Unfortunately the field variable name is not succesfully applied when using the completion. In contrast to previous releases the qualifier appears in the completion list: key String this.key String - Test sample: public class Test { private String key; public Test(String key) { k // try completion here } public void setKey(String key) { k // try completion here } }

Files changed in fix:
org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/contentassist/MethodInsertCompletionTest.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java