Compile

Rémi Forax forax at univ-mlv.fr
Mon Nov 22 14:26:00 PST 2010


On 11/22/2010 11:03 PM, Felix Schmidt wrote:
> I got the following error
>
> CTest.java:4: '{' expected
>           #int() fortyTwo = #()(42);
>            ^
> CTest.java:4:<identifier>  expected
>           #int() fortyTwo = #()(42);
>               ^
> CTest.java:4: ';' expected
>           #int() fortyTwo = #()(42);
>                ^
> CTest.java:4: '{' expected
>           #int() fortyTwo = #()(42);
>                              ^
> CTest.java:4: ';' expected
>           #int() fortyTwo = #()(42);
>                               ^
> CTest.java:4: not a statement
>           #int() fortyTwo = #()(42);
>                                ^
> 6 errors

You're using an old syntax.
Here is the last state of the lambda spec:
http://cr.openjdk.java.net/~briangoetz/lambda/lambda-state-3.html

Rémi



More information about the lambda-dev mailing list