Bugs in new push

Ali Ebrahimi ali.ebrahimi1781 at gmail.com
Sat Oct 23 21:55:11 PDT 2010


*Hi **Maurizio,*
*
*
*After new push the following test that already passed successfully, now
have a few compile error.*
*1)*
*
        final Runnable r1 =#
        {
            System.out.println("Start")
        };
        r1.run();

    Error:Error:line (67)variable r1 might already have been assigned

2)

        final Runnable r2 =#
        {
            int sum = 0;
            for (int i = 1; i <= 4; i++) {
                sum += i;
            }
            out.println("Sum 4 = " + sum);
        }
        ;
        r2.run();
    Error:Error:line (76)local variable i cannot be referenced
    Error:Error:line (77)local variable sum cannot be referenced

3)

        final IntList11 il = new IntList11();
        out.println(il);


        il.forEach( #
        { i ->   return i+0;
        });
    Error:Error:line (181)unreported exception Exception; must be caught or
declared to be thrown

I compiled the test with my build after getting latest changes.
I attached full test to my mail.


Best Regards
Ali Ebrahimi
*


More information about the lambda-dev mailing list