RFR: 8155191: Specify that SecureRandom.nextBytes(byte[]) throws NullPointerException when byte array is null [v3]
Valerie Peng
valeriep at openjdk.org
Thu May 11 19:30:34 UTC 2023
On Thu, 11 May 2023 17:16:19 GMT, Sean Mullan <mullan at openjdk.org> wrote:
>> Valerie Peng has updated the pull request incrementally with one additional commit since the last revision:
>>
>> updated reg test with review comments.
>
> test/jdk/java/security/SecureRandom/NextBytesNull.java line 29:
>
>> 27: * @summary check NPE is thrown for various methods of SecureRandom class,
>> 28: * e.g. SecureRandom(byte[]), nextBytes(byte[]), and setSeed(byte[]).
>> 29: * @run main/othervm NextBytesNull
>
> Does this need to be run in othervm mode?
Probably not. Will remove.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13788#discussion_r1191603458
More information about the security-dev
mailing list