Community
Participate
Working Groups
build Build id: I20080122-1600 public class X { { int i; i = 0; } void foo() { int j; j = 0; } } IVariableBinding#getJavaElement() return a java element for j but 'null' for i. The problem is in VariableBinding#getUnresolvedJavaElement(). This method return null if the parent of the variable is not a method.
This seems to be done on purpose.
Created attachment 101518 [details] Proposed fix and regression test
Fix and test released for 3.5M1
Verified for 3.5M1 using I20080805-1307