RFR: 8267068: Incomplete @throws javadoc for various javax.crypto.spec classes [v3]
Mark Powers
mpowers at openjdk.org
Thu Feb 20 14:36:54 UTC 2025
On Wed, 12 Feb 2025 18:41:45 GMT, Valerie Peng <valeriep at 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
More information about the security-dev
mailing list