Documenting exception behaviour

Akhil Arora akhil.arora at oracle.com
Mon Apr 22 09:27:15 PDT 2013


On 04/22/2013 04:40 AM, Alan Bateman wrote:
> On 22/04/2013 09:50, Paul Sandoz wrote:
>>
>>   From reviews Iterator/Iterable methods were updated to:
>>
>>     "Errors or runtime exceptions thrown by the action are relayed to the caller"
>>
>> (Spliterator was not, but that is because i forgot!).
>>
>> So we should try and be consistent with the agreed text.
>>
> It would be good to keep the wording consistent if possible. I think I
> may have started this by suggesting that errors be mentioned for
> completeness reasons.

Updated Collection.removeIf and List.replaceAll to use the same words as 
Iterator/Iterable as pasted above.

http://hg.openjdk.java.net/lambda/lambda/jdk/rev/2783a9b4beaf

updated webrev -

http://cr.openjdk.java.net/~akhil/8001647.10/webrev/



More information about the lambda-dev mailing list