Bug 67873 [spell checking] tons of temporary spell check annotations
I200406180010 + plug-in export for I200406180800 1. disable folding and enable spell checker 2. open AbstractTextEditor 3. goto verifyText 4. start typing some random text behind a } observer the overview ruler: sometimes it is filled with spell checker annotations Note: if you cannot reproduce try starting to type - wait shortly - then type again.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/spelling/SpellReconcileStrategy.java
import org.eclipse.jface.text.reconciler.IReconcilingStrategy;
import org.eclipse.jface.text.reconciler.IReconcilingStrategyExtension;
import org.eclipse.jface.text.source.IAnnotationModel;
import org.eclipse.ui.texteditor.ITextEditor;
import org.eclipse.jdt.core.IProblemRequestor;
import org.eclipse.jdt.core.compiler.IProblem;
import org.eclipse.jdt.internal.ui.JavaUIMessages;
import org.eclipse.jdt.internal.ui.text.spelling.engine.ISpellCheckEngine;
import org.eclipse.jdt.internal.ui.text.spelling.engine.ISpellCheckPreferenceKeys;
import org.eclipse.jdt.internal.ui.text.spelling.engine.ISpellChecker;
import org.eclipse.jdt.internal.ui.text.spelling.engine.ISpellEvent;
import org.eclipse.jdt.internal.ui.text.spelling.engine.ISpellEventListener;
/**
 * Reconcile strategy to spell-check comments.
 * 
 * @since 3.0
 */
public class SpellReconcileStrategy implements IReconcilingStrategy, IReconcilingStrategyExtension, ISpellEventListener {
	/**
	 * Spelling problem to be accepted by problem requestors.
	 */
	public class SpellProblem implements IProblem {
		
		public static final int Spelling= 0x80000000;
		
		private int fEnd= 0;
		
		private int fLine= 1;
		
		private boolean fMatch;