Bug 26321 Quick fix via Ctrl+1: chooses last error if no errors left to cursor
Build I20021113 - create TestCase() { fNam= null; fNme= null; } - position cursor at beginning of line fNam=.... - avtivate quick fix ==> quick fix opens on fNme= null; I would expect that quick fix opens on the "nearest" error
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/JavaCorrectionProcessor.java
JavaPlugin.log(e);
			return false;
		}
	}	
	
	private IEditorPart fEditor;
	
	/**
	 * Constructor for JavaCorrectionProcessor.
	 */
	public JavaCorrectionProcessor(IEditorPart editor) {
		fEditor= editor;
	}
	/*
	 * @see IContentAssistProcessor#computeCompletionProposals(ITextViewer, int)
	 */
	public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int documentOffset) {
		
		ICompilationUnit cu= JavaUI.getWorkingCopyManager().getWorkingCopy(fEditor.getEditorInput());
		IAnnotationModel model= JavaUI.getDocumentProvider().getAnnotationModel(fEditor.getEditorInput());
		ArrayList proposals= new ArrayList();
		if (model != null) {
			int length= viewer != null ? viewer.getSelectedRange().y : 0;
			processProblemAnnotations(cu, model, documentOffset, length, proposals);
		}
		
		if (proposals.isEmpty()) {
			proposals.add(new NoCorrectionProposal(null, null));
		}
		ICompletionProposal[] res= (ICompletionProposal[]) proposals.toArray(new ICompletionProposal[proposals.size()]);