Bug 117493 [content assist] CompletionRequestor#completionFailure(IProblem)) is ignored
This got introduced after 3.2 M1 (i.e. broken in 3.2 M2 and newer). If completion fails we now always show: "No completion available." instead of the real error text. Example: for (Iterator i=things.iterator(); i.<ctrl-space> // Iterator not yet imported)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProcessor.java
import org.eclipse.jface.text.contentassist.IContextInformationValidator;
import org.eclipse.jface.text.contentassist.TextContentAssistInvocationContext;
import org.eclipse.ui.IEditorPart;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.ui.text.java.CompletionProposalComparator;
import org.eclipse.jdt.ui.text.java.IJavaCompletionProposal;
import org.eclipse.jdt.ui.text.java.JavaContentAssistInvocationContext;
import org.eclipse.jdt.internal.ui.JavaUIMessages;
/**
 * Java completion processor.
 */
public class JavaCompletionProcessor extends ContentAssistProcessor {
	private final static String VISIBILITY= JavaCore.CODEASSIST_VISIBILITY_CHECK;
	private final static String ENABLED= "enabled"; 
	private final static String DISABLED= "disabled"; 
	private static final Set KEYWORDS;
	
	private IContextInformationValidator fValidator;
	private int fNumberOfComputedResults= 0;
	
	private final CompletionProposalComparator fAlphaComparator;
	private final CompletionProposalComparator fComparator;
	protected final IEditorPart fEditor;
	
	public JavaCompletionProcessor(IEditorPart editor, ContentAssistant assistant, String partition) {
		super(assistant, partition);
		fEditor= editor;
		fAlphaComparator= new CompletionProposalComparator();
		fAlphaComparator.setOrderAlphabetically(true);
		fComparator= new CompletionProposalComparator();