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
protected boolean isMarkingOccurrences() {
		return fMarkOccurrenceAnnotations;
	}
	
	boolean markOccurrencesOfType(IBinding binding) {
		
		if (binding == null)
			return false;
		
		int kind= binding.getKind();
		if (fMarkTypeOccurrences && kind == IBinding.TYPE)
			return true;
		if (fMarkMethodOccurrences && kind == IBinding.METHOD)
			return true;
		if (kind == IBinding.VARIABLE) {
			IVariableBinding variableBinding= (IVariableBinding)binding;
			if (variableBinding.isField()) {
				int constantModifier= IModifierConstants.ACC_STATIC | IModifierConstants.ACC_FINAL;
				boolean isConstant= (variableBinding.getModifiers() & constantModifier) == constantModifier; 
				if (isConstant)
					return fMarkConstantOccurrences;
				else
					return fMarkFieldOccurrences;
			}
			
			return fMarkLocalVariableypeOccurrences;
		}
		return false;
	}