Bug 42199 Select Next/Previous Word is broken when navigating over sequence of upper-case letters
I20030827: When positioning the caret to the right of sequences with pattern a* A+ a*, where A+ consists of more than two upper-case letters, the caret is moved to the beginning instead in front of the first A when using Ctrl+Arrow_Left.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
private static boolean isBracket(char character) {
		for (int i= 0; i != BRACKETS.length; ++i)
			if (character == BRACKETS[i])
				return true;
		return false;
	}
	private static boolean isSurroundedByBrackets(IDocument document, int offset) {
		if (offset == 0 || offset == document.getLength())
			return false;
		try {
			return
				isBracket(document.getChar(offset - 1)) &&
				isBracket(document.getChar(offset));
			
		} catch (BadLocationException e) {
			return false;	
		}
	}
	private IJavaAnnotation getNextAnnotation(int offset, int length, boolean forward, Position annotationPosition) {
		IJavaAnnotation nextAnnotation= null;
		Position nextAnnotationPosition= null;
		IJavaAnnotation containingAnnotation= null;
		Position containingAnnotationPosition= null;
		boolean currentAnnotation= false;
		
		IDocument document= getDocumentProvider().getDocument(getEditorInput());
		int endOfDocument= document.getLength(); 
		int distance= 0;