Community
Participate
Working Groups
version: 2002 2 problems when I use resolveBinding() on the generated AST for the following code : public class Foo{ int bar() throws Throwable { return Foo.x; } static int x; } the tree for "return Foo.x;" is : ReturnStatement +-QualifiedName +-SimpleName: "Foo" +-SimpleName: "x" 1- resolveBinding() on SimpleName "Foo" returns a IVariableBinding object, I expected a ITypeBinding 2- resolveBinding() on SimpleName "x" throws a NullPointerException : java.lang.NullPointerException at org.eclipse.jdt.core.dom.DefaultBindingResolver.resolveNameForNameReference(DefaultBindingResolver.java:222) at org.eclipse.jdt.core.dom.DefaultBindingResolver.resolveName(DefaultBindingResolver.java:97) at org.eclipse.jdt.core.dom.Name.resolveBinding(Name.java:75)
Already fixed in latest. Closed.