On Wed, 3 Jun 2026 14:47:33 GMT, Viktor Klang <[email protected]> wrote:

>> So, if `equals()` is invoked with an `obj="a"` then `obj` is not an instance 
>> of `List` and no elements are compared, and the method would not throw.
>> 
>> If we have a list with `N` elements for which an element failed computation, 
>> and we compare against another (RandomAccess) list with `N1 != N` elements, 
>> then no elements are compared, and the method would not throw.
>> 
>>  If we have a List with `N` elements and the last element's computation 
>> failed `[N-1]` and we compare against another `List` with `N1 == N` elements 
>> but where any of the non-last elements differ, then the method would not 
>> throw.
>
> Perhaps some variation of "if attempting to compare an element that could not 
> be computed"?

Good suggestion. I've added your text.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/31274#discussion_r3349993248

Reply via email to