lambda-repo workaround [was Re: Can't get lambda forest to work]
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Thu Jun 17 05:28:21 PDT 2010
This is fixed now.
Thanks
Maurizio
On 17/06/10 13:14, Maurizio Cimadamore wrote:
> On 17/06/10 13:06, Andrew John Hughes wrote:
>
>> public static void main(String[] args)
>> {
>> #int(int) square = #(int x)(x * x);
>> #int() fortyTwo = #()(42);
>> Integer y = Integer.parseInt(args[0]);
>> System.out.println("Hello, the meaning of life is " + fortyTwo.());
>> System.out.println(y + " squared is " + square.(y));
>>
>>
>>
> This is a straight prototype bug ;-)
> I have a fix for it will be pushing it soon. The problem is the boxing
> (you are passing a Integer where the closure accepts a 'int'). The
> prototype works ok, but an assertion causes the crash (disabling
> assertions also works fine).
>
> Maurizio
>
>
More information about the lambda-dev
mailing list