Bug 21857 Javadoc code completion does not work for public method of public inner class
Consider the following example, where the cursor is placed at the end of the javadoc comment line. Pressing Ctrl-Space now should complete with "someMethod()", shouldn't it? However, in Build 200206271827, it doesn't. public class TestCompletion { /** * {@link InnerTest#so */ public TestCompletion() { super(); } public class InnerTest { public void someMethod() {} } }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
parent= (IType) elem.getAncestor(IJavaElement.TYPE);
			}
				
			if (parent != null) {
				int nidx= arg.indexOf('(', pidx);
				if (nidx == -1) {
					nidx= arg.length();
				}
				String prefix= arg.substring(pidx + 1, nidx);			
			
				addProposals(prefix, parent.getMethods());
				addProposals(prefix, parent.getFields());
			}
		}
	}
	
	private void evalTypeNameCompletions(IMember currElem, int wordStart) throws JavaModelException {
		ICompilationUnit preparedCU= createPreparedCU(currElem, wordStart, fCurrentPos);
		if (preparedCU != null) {
			CompletionRequestorAdapter requestor= new CompletionRequestorAdapter() {
				public void acceptClass(char[] packageName, char[] className, char[] completionName, int modifiers, int start, int end, int severity) {
					fResult.add(createSeeTypeCompletion(true, start, end, completionName, className, packageName, severity));
				}
				public void acceptInterface(char[] packageName, char[] interfaceName, char[] completionName, int modifiers, int start, int end, int severity) {
					fResult.add(createSeeTypeCompletion(false, start, end, completionName, interfaceName, packageName, severity));
				}
				public void acceptType(char[] packageName, char[] typeName, char[] completionName, int start, int end, int severity) {
					fResult.add(createSeeTypeCompletion(true, start, end, completionName, typeName, packageName, severity));
				}