Bug 64129 Highlight method exit points fail
When the return type is primitive like int or void, this function works well. But if the return type is a class, like Vector, my Eclipse 3M9 just highlights all the occurrences of "Vector" in the file. This function should be smarter.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
return;				
				}
				
				char character= document.getChar(position);
				while (position > 0 && Character.isWhitespace(character)) {
					--position;
					character= document.getChar(position);
				}
				
				if (Character.isJavaIdentifierPart(character)) {
					int offset= 0;
					int order= CollationElementIterator.NULLORDER;
					short previous= Short.MAX_VALUE;
					short next= Short.MAX_VALUE;
					
					final ITypedRegion region= TextUtilities.getPartition(document, IJavaPartitions.JAVA_PARTITIONING, position, false);
					final String buffer= document.get(region.getOffset(), position - region.getOffset() + 1);
					final CollationElementIterator iterator= fCollator.getCollationElementIterator(buffer);
					
					iterator.setOffset(buffer.length() - 1);
					do {
						
						offset= iterator.getOffset();
						character= document.getChar(region.getOffset() + offset);
						if (!Character.isJavaIdentifierPart(character)) {
							int caret= widgetOffset2ModelOffset(viewer, viewer.getTextWidget().getCaretOffset());
							int current= region.getOffset() + offset + 2;
							if (caret > current)
								setCaretPosition(current);
							super.run();