View | Details | Raw Unified | Return to bug 218397 | Differences between
and this patch

Collapse All | Expand All

(-)search/org/eclipse/jdt/internal/core/search/matching/TypeReferenceLocator.java (-1 / +1 lines)
Lines 541-547 Link Here
541
	}
541
	}
542
	if (refBinding.isLocalType()) {
542
	if (refBinding.isLocalType()) {
543
		// see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=82673
543
		// see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=82673
544
		LocalTypeBinding local = (LocalTypeBinding) refBinding;
544
		LocalTypeBinding local = (LocalTypeBinding) refBinding.erasure();
545
		IJavaElement focus = ((InternalSearchPattern)pattern).focus;
545
		IJavaElement focus = ((InternalSearchPattern)pattern).focus;
546
		if (focus != null && local.enclosingMethod != null && focus.getParent().getElementType() == IJavaElement.METHOD) {
546
		if (focus != null && local.enclosingMethod != null && focus.getParent().getElementType() == IJavaElement.METHOD) {
547
			IMethod method = (IMethod) focus.getParent();
547
			IMethod method = (IMethod) focus.getParent();

Return to bug 218397