title: Is there any official document about the implicit capture of `this` in lambda expression in Java 11?
body: <p>I'm planning to serialize a lambda expression in Java 11. However, I'm not sure about the <em>exact</em> behavior of lambda expression in Java 11.
  For simplicity, here I define <code>SerializableFunction</code> as an intersection type of <code>Function</code> and <code>Serializable</code>.</p>
  
  <p>I know <code>anonymousInnerClass</code> object in the code below should not be serializable due to implicit synthetic <code>this</code> binding.</p>
  
  <pre><code>SerializableFunction&lt;Object, Object&gt; anonymousInnerClass = new SerializableFunction&lt;Object, Object&gt;() {
      @Override
      public Object apply(Object o) {
          return null;
      }
  };
  </code></pre>
  
  <p>If the lambda expression is just a syntax-sugar for an anonymous inner class, the <code>lambdaExpression</code> object should not be serializable either.</p>
  
  <pre><code>Function&lt;Object, Object&gt; lambdaExpression = (o) -&gt; null;
  </code></pre>
  
  <p>However, in my environment, the former code raises <code>NotSerializableException</code>, but the latter one does not.</p>
  
  <p>Is there any official description about this behavior?</p>