Effectively final

Brian Goetz brian.goetz at oracle.com
Mon Aug 15 15:14:11 PDT 2011


No, that's not correct.  The "powers that be" are not OK with this as a 
practice, though of course we recognize that some people are going to be 
idiots anyway, and we can't stop them all, any more than we can stop 
people from writing data races.

But, since we appear to be sending the wrong message through 
documentation, could you please point me to whatever example of "oracle 
documentation" you are alluding to, so we can do the appropriate 
internal reeducation?  Thanks!

On 8/15/2011 5:43 PM, Llewellyn Falco wrote:
> We've been thru this before,
>
> the way it will actually happen is as outlined in the Oracle documentation
>
> final int[] sum = new int[]{0};
> parallelArray.forEach( #{ it ->  sum+= it; });
>
>
> the powers that be are ok with this.
>
> while I agree with tim, this fight seems to be over.
>
>
> llewellyn
>


More information about the lambda-dev mailing list