Community
Participate
Working Groups
Added watch expression "fName.length()" and debugged junit.samples.VectorTest to breakpoint in testCapacity(). Got following NPE: java.lang.NullPointerException at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTInstructionCompiler.containsALocalType(ASTInstructionCompiler.java:376) at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTInstructionCompiler.visit(ASTInstructionCompiler.java:2670) at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:236) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2497) at org.eclipse.jdt.core.dom.ReturnStatement.accept0(ReturnStatement.java:135) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2520) at org.eclipse.jdt.core.dom.Block.accept0(Block.java:135) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2497) at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:501) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2520) at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:483) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2520) at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:212) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2450) at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.createExpressionFromAST(ASTEvaluationEngine.java:389) at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.getCompiledExpression(ASTEvaluationEngine.java:204) at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.evaluate(ASTEvaluationEngine.java:89) at org.eclipse.jdt.internal.debug.ui.JavaWatchExpressionDelegate$EvaluationRunnable.run(JavaWatchExpressionDelegate.java:144) at org.eclipse.jdt.internal.debug.core.model.JDIThread$ThreadJob.run(JDIThread.java:2448) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
*** Bug 105169 has been marked as a duplicate of this bug. ***
for some reason the method binding being passed in is null....this one will take alot more effort and digging than allowed for the remainder or the RC's.
I'll take a look at this one... I've got some ideas.
Seems to be caused by the fact the fName is a private field access that is not visible from the receiving object that the expression is compiled in.
Same problem existed in 3.1. Marking as later as this is not a regression. The best fix would be to propogate the compilation error to the user - i.e. fName is not visible.
*** Bug 140637 has been marked as a duplicate of this bug. ***
Marking as 3.3
Investigate for 3.2.1
Created attachment 43794 [details] patch Patch reports the error to the user when unable to resolve a method binding.
Released to TARGET_321 branch
Released to HEAD
Released to R3_2_maintenance branch
Please verify, Mike.
verified
*** Bug 151244 has been marked as a duplicate of this bug. ***
*** Bug 154656 has been marked as a duplicate of this bug. ***
see also Bug 277574