facebook

Tooltip debug expressions can be wrong

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #266496 Reply

    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

    #266570 Reply

    Riyad Kalla
    Member

    John,
    Very good catch, I’ll file it as a bug.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Tooltip debug expressions can be wrong

You must be logged in to post in the forum log in