Re: RFR: 8155191: SunPKCS11's SecureRandom#nextBytes(byte[]) accepts null argument

2023-05-04 Thread Valerie Peng
On Thu, 4 May 2023 12:59:21 GMT, Sean Mullan wrote: > I suggest the title of this issue should be changed to better reflect the > proposed change: "Specify that SecureRandom.nextBytes(byte[]) throws > NullPointerException when byte array is null". Ok. > Also, would you consider making the sam

Re: RFR: 8155191: SunPKCS11's SecureRandom#nextBytes(byte[]) accepts null argument

2023-05-04 Thread Sean Mullan
On Thu, 4 May 2023 01:58:42 GMT, Valerie Peng wrote: > Just a trivial change for enforcing consistent NullPointerException behavior > for the SecureRandom.nextBytes(byte[]) method. > > Other similar methods such as Random.nextByte(byte[]) and its other > subclasses all throw NPE for null byte[