Bug 62878 [misc] Mark Occurrences of exceptions/types inconsistent
I200405190010 - disable Mark Exceptions - enable Mark Types - in TestCase: - position cursor on Throwable of runBare() declaration -> type Throwable is marked - posititon cursor on Throwable of runTest() delcaration -> type Throwable is not marked This is inconsistent.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/ExceptionOccurrencesFinder.java
private boolean methodThrowsException(MethodDeclaration method, Name exception) {
		ASTMatcher matcher = new ASTMatcher();
		for (Iterator iter = method.thrownExceptions().iterator(); iter.hasNext();) {
			Name thrown = (Name)iter.next();
			if (exception.subtreeMatch(matcher, thrown))
				return true;
		}
		return false;
	}
	
	public List perform() {
		fStart.accept(this);
		if (fResult.size() > 0 && fSelectedName != null) {
			fResult.add(fSelectedName);
		}
		return fResult;
	}
	
	/* (non-Javadoc)
	 * @see org.eclipse.jdt.internal.ui.search.IPositionFinder#createMarkers(org.eclipse.core.resources.IResource, org.eclipse.jface.text.IDocument)
	 */
	public IMarker[] createMarkers(IResource file, IDocument document) throws CoreException {
		List result= new ArrayList();
		for (Iterator iter = fResult.iterator(); iter.hasNext();) {
			ASTNode node = (ASTNode) iter.next();
			result.add(createMarker(file, document, node));
		}
		return (IMarker[]) result.toArray(new IMarker[result.size()]);
	}