Hi,
I’ve just found a bug where the tooltip evaluation of variables is not scoped to the correct variable instance; the best way to describe it is in code
class Orange {
private Orange innerOrange;
private String somevar;
public void someFunc() {
System.out.println(innerOrange.somevar); // breakpoint here
}
}
... somewhere else...
{
Orange orange = new Orange();
orange.somevar = "1";
orange.innerOrange = new Orange();
orange.innerOrange.somevar = "2";
orange.someFunc(); // step into here
}
Debug to the “// beakpoint here” comment and hover the mouse over “innerOrange.somevar” and the tooltip evaluation that appears is “1” when it should be “2”. Using the Variables view shows that this.innerOrange.somevar is “2”.
John