title: Eclipse stepping into methods
body: <p>I am lost for words and ideas.  I am working with a polymorphic binary search tree where I need to compute the height of the tree.  The NonEmptyTree implements the Tree interface and has all of the necessary methods.  The problem I'm having is actually calling the height method.  I'm not sure what I'm doing wrong and it's probably because I'm took close to the project that I can't seem to find probably the obvious issue.</p>
  
  <p>There is also a class called EmptyTree which also implements the Tree interface.  Below are all of the relevant methods.</p>
  
  <pre><code>public class PolymorphicBST&lt;K extends Comparable&lt;K&gt;, V&gt;  {
      public int height() {
          return this.height();
  }
  
  public int height() {
      int lDepth = left.height();
      int rDepth = right.height();
  
      if (lDepth == 0 || rDepth == 0) {
          return 0;
      } else if (Math.abs(lDepth - rDepth) &gt; 1) {
          return 0;
      }
  
      return Math.max(lDepth, rDepth) + 1;
  }
  </code></pre>
  
  <p>The code in the heightAux method is used to calculate the actual height of the tree.  When I debug the program it never leaves the JUnit class no matter how many breakpoint I insert and how many times I press "step into".  When I press resume project I just get a StackOverflow error.  This is a school project so I'm not displaying all of the code just that which is relevant to the problem.  Any help would be greatly appreciated!!</p>
  
  <p>So, I have know gotten rid of the auxiliary method since I don't think it's necessary to get the height.</p>