Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG [v4]

2024-02-09 Thread Oli Gillespie
On Wed, 7 Feb 2024 09:49:10 GMT, Oli Gillespie wrote: >> A typical call to `new SecureRandom()` is slowed down by looking for a >> constructor in NativePRNG which takes >> `java.security.SecureRandomParameters`. NativePRNG does not have such a >> constructor, so the search fails >> [here](htt

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG [v4]

2024-02-07 Thread Valerie Peng
On Wed, 7 Feb 2024 09:49:10 GMT, Oli Gillespie wrote: >> A typical call to `new SecureRandom()` is slowed down by looking for a >> constructor in NativePRNG which takes >> `java.security.SecureRandomParameters`. NativePRNG does not have such a >> constructor, so the search fails >> [here](htt

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG [v3]

2024-02-07 Thread Oli Gillespie
On Tue, 6 Feb 2024 18:46:30 GMT, Valerie Peng wrote: >> Oli Gillespie has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update copyright year > > src/java.base/unix/classes/sun/security/provider/NativePRNG.java line 207: > >> 205: //

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG [v4]

2024-02-07 Thread Oli Gillespie
> A typical call to `new SecureRandom()` is slowed down by looking for a > constructor in NativePRNG which takes `java.security.SecureRandomParameters`. > NativePRNG does not have such a constructor, so the search fails > [here](https://github.com/openjdk/jdk/blob/master/src/java.base/share/clas

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG [v3]

2024-02-06 Thread Valerie Peng
On Tue, 6 Feb 2024 13:54:10 GMT, Oli Gillespie wrote: >> A typical call to `new SecureRandom()` is slowed down by looking for a >> constructor in NativePRNG which takes >> `java.security.SecureRandomParameters`. NativePRNG does not have such a >> constructor, so the search fails >> [here](htt

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG [v3]

2024-02-06 Thread Chen Liang
On Tue, 6 Feb 2024 13:54:10 GMT, Oli Gillespie wrote: >> A typical call to `new SecureRandom()` is slowed down by looking for a >> constructor in NativePRNG which takes >> `java.security.SecureRandomParameters`. NativePRNG does not have such a >> constructor, so the search fails >> [here](htt

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG [v3]

2024-02-06 Thread Oli Gillespie
> A typical call to `new SecureRandom()` is slowed down by looking for a > constructor in NativePRNG which takes `java.security.SecureRandomParameters`. > NativePRNG does not have such a constructor, so the search fails > [here](https://github.com/openjdk/jdk/blob/master/src/java.base/share/clas

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG [v2]

2024-02-06 Thread Weijun Wang
On Tue, 6 Feb 2024 10:41:55 GMT, Oli Gillespie wrote: >> A typical call to `new SecureRandom()` is slowed down by looking for a >> constructor in NativePRNG which takes >> `java.security.SecureRandomParameters`. NativePRNG does not have such a >> constructor, so the search fails >> [here](htt

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG

2024-02-06 Thread Oli Gillespie
On Wed, 24 Jan 2024 15:42:05 GMT, Oli Gillespie wrote: > A typical call to `new SecureRandom()` is slowed down by looking for a > constructor in NativePRNG which takes `java.security.SecureRandomParameters`. > NativePRNG does not have such a constructor, so the search fails > [here](https://gi

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG [v2]

2024-02-06 Thread Oli Gillespie
> A typical call to `new SecureRandom()` is slowed down by looking for a > constructor in NativePRNG which takes `java.security.SecureRandomParameters`. > NativePRNG does not have such a constructor, so the search fails > [here](https://github.com/openjdk/jdk/blob/master/src/java.base/share/clas

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG

2024-02-02 Thread Weijun Wang
On Wed, 24 Jan 2024 15:42:05 GMT, Oli Gillespie wrote: > A typical call to `new SecureRandom()` is slowed down by looking for a > constructor in NativePRNG which takes `java.security.SecureRandomParameters`. > NativePRNG does not have such a constructor, so the search fails > [here](https://gi

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG

2024-02-01 Thread Oli Gillespie
On Wed, 24 Jan 2024 15:42:05 GMT, Oli Gillespie wrote: > A typical call to `new SecureRandom()` is slowed down by looking for a > constructor in NativePRNG which takes `java.security.SecureRandomParameters`. > NativePRNG does not have such a constructor, so the search fails > [here](https://gi

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG

2024-01-31 Thread Oli Gillespie
On Wed, 24 Jan 2024 15:42:05 GMT, Oli Gillespie wrote: > A typical call to `new SecureRandom()` is slowed down by looking for a > constructor in NativePRNG which takes `java.security.SecureRandomParameters`. > NativePRNG does not have such a constructor, so the search fails > [here](https://gi

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG

2024-01-31 Thread Weijun Wang
On Wed, 24 Jan 2024 15:42:05 GMT, Oli Gillespie wrote: > A typical call to `new SecureRandom()` is slowed down by looking for a > constructor in NativePRNG which takes `java.security.SecureRandomParameters`. > NativePRNG does not have such a constructor, so the search fails > [here](https://gi

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG

2024-01-30 Thread Valerie Peng
On Wed, 24 Jan 2024 15:42:05 GMT, Oli Gillespie wrote: > A typical call to `new SecureRandom()` is slowed down by looking for a > constructor in NativePRNG which takes `java.security.SecureRandomParameters`. > NativePRNG does not have such a constructor, so the search fails > [here](https://gi

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG

2024-01-29 Thread Aleksey Shipilev
On Wed, 24 Jan 2024 15:42:05 GMT, Oli Gillespie wrote: > A typical call to `new SecureRandom()` is slowed down by looking for a > constructor in NativePRNG which takes `java.security.SecureRandomParameters`. > NativePRNG does not have such a constructor, so the search fails > [here](https://gi

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG

2024-01-25 Thread Oli Gillespie
On Wed, 24 Jan 2024 19:50:55 GMT, Chen Liang wrote: > I see that the existing caller code has a check for `ctorParamClass`. Why > must we declare `SecureRandomParameters.class` as the `ctorParamClass` for > these 3 randoms instead of using `null`? >From [lookup >code](https://github.com/openj

Re: RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG

2024-01-24 Thread Chen Liang
On Wed, 24 Jan 2024 15:42:05 GMT, Oli Gillespie wrote: > A typical call to `new SecureRandom()` is slowed down by looking for a > constructor in NativePRNG which takes `java.security.SecureRandomParameters`. > NativePRNG does not have such a constructor, so the search fails > [here](https://gi

RFR: 8324648: Avoid NoSuchMethodError when instantiating NativePRNG

2024-01-24 Thread Oli Gillespie
A typical call to `new SecureRandom()` is slowed down by looking for a constructor in NativePRNG which takes `java.security.SecureRandomParameters`. NativePRNG does not have such a constructor, so the search fails [here](https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java