RFR: 8023340 : (xxs) Clarify that unmodifiable List.replaceAll() may not throw UOE if there are no items to be replaced.

David Holmes david.holmes at oracle.com
Fri Sep 6 04:49:42 UTC 2013


Hi Mike,

On 6/09/2013 2:58 AM, Mike Duigou wrote:
> Hello all;
>
> A very small spec clarification for review. The spec clarification ensures that the behaviour of the default method can satisfy the needs of unmodifiable implementations.
>
> http://cr.openjdk.java.net/~mduigou/JDK-8023340/0/webrev/

I don't agree with the change. An Unmodifable list _should_ throw UOE.

That aside I don't know how to interpret you change:

"operation is not supported by this list for some element"

What does "for some element" mean ???

David

> Thanks,
>
> Mike
>



More information about the core-libs-dev mailing list