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
private int fCurrentLength;
	
	private JavaElementLabelProvider fLabelProvider;
	private List fResult;
	
	private boolean fRestrictToMatchingCase;
	
	public JavaDocCompletionEvaluator(ICompilationUnit cu, IDocument doc, int pos, int length) {
		fCompilationUnit= cu;
		fDocument= doc;
		fCurrentPos= pos;
		fCurrentLength= length;
		fResult= new ArrayList();
		fRestrictToMatchingCase= false;
	}
	/**
	 * Tells this evaluator to restrict is proposals to those
	 * starting with matching cases.
	 * 
	 * @param restrict <code>true</code> if proposals should be restricted
	 */
	public void restrictProposalsToMatchingCases(boolean restrict) {
		fRestrictToMatchingCase= restrict;
	}
		
	private static boolean isWordPart(char ch) {
		return Character.isJavaIdentifierPart(ch) || (ch == '#') || (ch == '.') || (ch == '/');
	}
			
	private static int findCharBeforeWord(IDocument doc, int lineBeginPos, int pos) {