On Wed, 12 Feb 2025 18:41:45 GMT, Valerie Peng <valer...@openjdk.org> wrote:

>> Maybe we should just state that ArrayIndexOutOfBoundsException is thrown if 
>> `offset` or `len` is negative? The current wording for AIOOBE seems to 
>> suggest that it covers the case when `offset` or `len` is too large. But 
>> that is covered by the IAE.
>
> `SecretKeySpec` constructor has this same wording for AIOOBE, so if we change 
> to cover negative value only, we should apply the same change to 
> `SecretKeySpec` as well.

fixed

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23188#discussion_r1963680366

Reply via email to