Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 526132
Collapse All | Expand All

(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Expression.java (+2 lines)
Lines 1087-1092 Link Here
1087
			if (field.type.isRawType()) {
1087
			if (field.type.isRawType()) {
1088
				if (referenceContext instanceof AbstractMethodDeclaration) {
1088
				if (referenceContext instanceof AbstractMethodDeclaration) {
1089
					AbstractMethodDeclaration methodDecl = (AbstractMethodDeclaration) referenceContext;
1089
					AbstractMethodDeclaration methodDecl = (AbstractMethodDeclaration) referenceContext;
1090
					if(methodDecl.binding == null)
1091
						return false;
1090
					if (TypeBinding.notEquals(field.declaringClass, methodDecl.binding.declaringClass)) { // inherited raw field, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=337962
1092
					if (TypeBinding.notEquals(field.declaringClass, methodDecl.binding.declaringClass)) { // inherited raw field, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=337962
1091
						return true;
1093
						return true;
1092
					}
1094
					}

Return to bug 526132