Bug 76674 Code assist always proposes current type in @see tag
Using build I200410190941. Test case: "IXX.java", "/**\n" + " * @see IYY\n" + " */\n" + "public interface IXX {}", "IYY.java", "public interface IYY {}" In IXX.java, set cursor just after @see IYY and launch completion. Then, you get 2 proposals in the list: IXX.java IYY.java This is not correct, first proposal (current type) should not be proposed!
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java
}
			}
			addAllTags(prefix);
		} catch (BadLocationException e) {
			
		}
	}
	
	private boolean prefixMatches(String prefix, String proposal) {
		if (fRestrictToMatchingCase) {
			return proposal.startsWith(prefix);
		} else if (proposal.length() >= prefix.length()) {
			return prefix.equalsIgnoreCase(proposal.substring(0, prefix.length()));
		}
		return false;
	}
		
		
	
	private void addAllTags(String prefix) {
		String jdocPrefix= "@" + prefix; 
		for (int i= 0; i < JAVADOC_GENERAL_TAGS.length; i++) {
			String curr= JAVADOC_GENERAL_TAGS[i];
			if (prefixMatches(jdocPrefix, curr)) {
				fResult.add(createCompletion(curr, prefix, curr, JavaPluginImages.get(JavaPluginImages.IMG_OBJS_JAVADOCTAG), null, 0));
			}		
		}
		String htmlPrefix= "<" + prefix; 
		for (int i= 0; i < fgHTMLProposals.length; i++) {
			String curr= fgHTMLProposals[i];