title: Cannot convert functional interface with generic method into lambda expression
body: <p>Cannot convert functional interface with generic method into lambda expression.<br />
  Following code is working. It is without lambda expression i.e. using anonymous class.</p>
  
  <pre><code>public interface Pro{
      public &lt;T&gt; void callee(T t);
  }
  
  public void fun(Pro obj){}
  
  
  public void implement() {
      fun(new Pro() {
          @Override
          public &lt;Integer&gt; void callee(Integer t){}
      });
  }
  </code></pre>
  
  <p>I cannot understand how to use lambda expression instead of anonymous class.<br />
  After trying it myself I used the hint shown in netbeans. I used the shown bulb to do it.</p>
  
  <p><img src="https://i.stack.imgur.com/y2iEY.png" alt="enter image description here"></p>
  
  <p>And here is what I got, an ERROR.</p>
  
  <pre><code>public void implement() {
      fun((Integer t) -&gt; {
      });
  }
  </code></pre>
  
  <p>It is showing error. What is the correct lambda expression to be used here?<br />
  Here is the error : </p>
  
  <pre><code>one\LambdaScopeTest.java:18: error: incompatible types: invalid functional descriptor for lambda expression
      fun((Integer t) -&gt; {
          ^
  method &lt;T&gt;(T)void in interface Pro is generic
  where T is a type-variable:
       T extends Object declared in method &lt;T&gt;callee(T)
  Note: Some messages have been simplified; recompile with -Xdiags:verbose to get
  full output
  </code></pre>