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 119860
Collapse All | Expand All

(-)eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java (+18 lines)
Lines 18-23 Link Here
18
18
19
import org.eclipse.jdt.core.Flags;
19
import org.eclipse.jdt.core.Flags;
20
import org.eclipse.jdt.core.Signature;
20
import org.eclipse.jdt.core.Signature;
21
import org.eclipse.jdt.core.compiler.IProblem;
21
import org.eclipse.jdt.core.dom.ASTNode;
22
import org.eclipse.jdt.core.dom.ASTNode;
22
import org.eclipse.jdt.core.dom.ASTVisitor;
23
import org.eclipse.jdt.core.dom.ASTVisitor;
23
import org.eclipse.jdt.core.dom.AnnotationTypeDeclaration;
24
import org.eclipse.jdt.core.dom.AnnotationTypeDeclaration;
Lines 2647-2652 Link Here
2647
		}
2648
		}
2648
2649
2649
		IMethodBinding methodBinding= (IMethodBinding) node.getName().resolveBinding();
2650
		IMethodBinding methodBinding= (IMethodBinding) node.getName().resolveBinding();
2651
		if (methodBinding == null) {
2652
			// could be the receiver is not visible - for example a private field access from super class
2653
			ASTNode root = node.getRoot();
2654
			if (root instanceof CompilationUnit) {
2655
				CompilationUnit cu = (CompilationUnit) root;
2656
				IProblem[] problems = cu.getProblems();
2657
				for (int i = 0; i < problems.length; i++) {
2658
					IProblem problem = problems[i];
2659
					setHasError(true);
2660
					addErrorMessage(problem.getMessage());
2661
				}
2662
			}
2663
		}
2664
		
2665
		if (hasErrors()) {
2666
			return true;
2667
		}
2650
2668
2651
		if (containsALocalType(methodBinding)) {
2669
		if (containsALocalType(methodBinding)) {
2652
			setHasError(true);
2670
			setHasError(true);

Return to bug 119860