title: Issues with compilation of multiline lambdas
body: <p>I'm looking at <a href="http://www.ibm.com/developerworks/library/j-java-streams-1-brian-goetz/index.html" rel="nofollow">http://www.ibm.com/developerworks/library/j-java-streams-1-brian-goetz/index.html</a></p>
  
  <p>Listing 6 doesnt seem to compile for me. I tried with an <code>ArrayList&lt;Integer&gt;</code> and ArrayList of objects.</p>
  
  <pre><code>int count = 
      anArrayList.stream()
                 .map(e -&gt; { System.out.println("Saw " + e); e })
                 .count();
  </code></pre>
  
  <p>The error I get is:</p>
  
  <pre><code>The method map(java.util.function.Function&lt;? super java.lang.Integer,? extends R extends java.lang.Object&gt;) in the type Stream&lt;Integer&gt; is not applicable for the arguments (java.util.function.Function&lt;? super java.lang.Integer,? extends R extends java.lang.Object&gt;)
  </code></pre>
  
  <p>What am I missing here?</p>