title: Error "The method * is not applicable for the arguments" in Eclipse Java editor but not Problems view
body: <p>I have a class called <code>ParentClass</code> and two child classes, let's call them <code>Child1</code> and <code>Child2</code> which extends from <code>ParentClass</code>.</p>
  
  <p>And I have a method which recieves the <code>ParentClass</code> as parameter, like this:</p>
  
  <pre><code>private void myMethod(ParentClass myObject) {
      // Do something...
  }
  </code></pre>
  
  <p>I should be able to call the method and pass an instance of any of the two child classes (because they extend from <code>ParentClass</code>), like this </p>
  
  <pre><code>Child1 child1 = new Child1();
  Child2 child2 = new Child2();
  
  myMethod(child1); // Error is displayed on this line
  myMethod(child2); // Error is displayed on this line
  </code></pre>
  
  <p>But the Eclipse Java editor is complaining with this error:</p>
  
  <pre><code>The method myMethod(ParentClass) in the type Test is not applicable for the arguments (Child1)
  </code></pre>
  
  <p>The strange this is that the error is displayed only in the Java Editor, but on the <code>Problems</code> or <code>Markers</code> view, also not on the <code>Project Explorer</code> view, the code complies and run successfully so I'm not sure why the error is displayed in the editor.</p>
  
  <p><strong>------EDIT------</strong></p>
  
  <p>Tried cleaning the projects, restarting Eclipse with the <code>-clean</code> option, exporting and importing the project in a new workspace.</p>