Push 23 August 1bb5b46bb326 fixes one bug, but introduces another
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Tue Aug 24 01:25:58 PDT 2010
On 24/08/10 09:24, Howard Lovatt wrote:
> Forgot to mention, bug in:
>
> il.forEach( #( i ) { 2 * i } ); // No exception; no try block -
> has syntax error
>
See earlier email. Same issue. Adding explicit type for 'i' does the trick.
Maurizio
> Also fixed, but as before now has to be in try block
>
> On 24 August 2010 18:07, Howard Lovatt<howard.lovatt at gmail.com> wrote:
>
>> Hi Maurizio,
>>
>> il.forEach( #( i ) {
>> if ( i< 3 ) { throw new Exception(); }
>> return i * i;
>> } ); // Need to catch the checked exception!
>>
>> Now needs a try block (as it should), but
>>
>> il.forEach( #( i ) { return 2 * i; } ); // No exception, no try block
>>
>> Also needs one and it shouldn't!
>>
>> I for one really appreciate all your hard work on this.
>>
>> -- Howard.
>>
>>
>
>
>
More information about the lambda-dev
mailing list