Bug 63145 Mark method exits by itself is not working
Build I200405190010 1. Check Java > Editor > Mark occurrences > Mark method exits (only) 2. Select the return type of a method containinga return statement Observe: the return type is not highlighted. Expectation: it should be. 3. Check Java > Editor > Mark occurrences > Mark exceptions (in addition to Mark method exits) 4. Select the return type again Observe: the return type is highlighted.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
if (matches.size() == 0 && fMarkMethodExitPoints) {
			MethodExitsFinder finder= new MethodExitsFinder();
			message= finder.initialize(astRoot, selection.getOffset(), selection.getLength());
			if (message == null) {
				matches= finder.perform();
			}
		}
		if (matches.size() == 0) {
			ASTNode node= NodeFinder.perform(astRoot, selection.getOffset(), selection.getLength());
			if (!(node instanceof Name)) {
				if (!fStickyOccurrenceAnnotations)
					removeOccurrenceAnnotations();
				return;
			}
			
			IBinding binding= ((Name)node).resolveBinding();
			if (binding == null && fStickyOccurrenceAnnotations)
				return;
			
			if (!markOccurrencesOfType(binding)) {
				if (!fStickyOccurrenceAnnotations)
					removeOccurrenceAnnotations();
				return;
			}
			
			
			OccurrencesFinder finder = new OccurrencesFinder(binding);
			message= finder.initialize(astRoot, selection.getOffset(), selection.getLength());
			if (message == null)
				matches= finder.perform();