title: Java: Using "this" as an argument/parameter name of an instance method?
body: <p>Recently <a href="https://stackoverflow.com/a/39531677/3102935">from this question</a> I have learned that the following appears to be legal java:</p>
  
  <pre><code>class Bar {
      void foo(Bar this) {}
  }
  </code></pre>
  
  <p>Now, I have tried to find where in the java standard it says that you are allowed to do this, and looked <a href="https://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html#jls-8.4.1" rel="nofollow noreferrer">here</a> but I couldn't find the section.</p>
  
  <p>Can someone quote where it allows this form of method declaration and what the restrictions of declaring an argument named <code>this</code> are?</p>