Question about latest binary build

Steven Simpson ss at comp.lancs.ac.uk
Thu Jul 19 13:51:12 PDT 2012


On 19/07/12 18:47, Dan Smith wrote:
> Actually, the rules have been relaxed, and your example should work, once the change is implemented in the compiler.

Not with that semicolon in there...

> public class TestSimple {
>
>      public static void main( final String... args ) {
>
>          new Thread( () -> System.out.println("Hello World");
> ).start();
>
>      }
>
> }
>
> Give:
>
> TestSimple.java:6: error: ')' expected
>          new Thread( () -> System.out.println("Hello World"); ).start();
>                                                             ^




More information about the lambda-dev mailing list