[jdk11u-dev] Integrated: 8321925: sun/security/mscapi/KeytoolChangeAlias.java fails with "Alias <246810> does not exist"
SendaoYan
syan at openjdk.org
Tue May 14 08:33:15 UTC 2024
On Thu, 28 Mar 2024 03:42:08 GMT, SendaoYan <syan at openjdk.org> wrote:
> Hi,
>
> Backport of [JDK-8321925](https://bugs.openjdk.org/browse/JDK-8321925).
>
> The origin PR use `int nextInt(int origin, int bound)` [link](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/random/RandomGenerator.html#nextInt(int,int)) , but the jdk11 do not have this API. So I change `int nextInt(int origin, int bound)` to `nextInt(bound - origin) + origin` [link](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Random.html#nextInt(int)).
>
> Only change the testcase, the change has been verified, the risk is low.
>
> ![image](https://github.com/openjdk/jdk11u-dev/assets/24123821/63c82beb-1c90-45b0-b8b7-6419cf111252)
>
> Thanks,
> -sendao
This pull request has now been integrated.
Changeset: 270f3cfb
Author: SendaoYan <syan at openjdk.org>
Committer: Martin Doerr <mdoerr at openjdk.org>
URL: https://git.openjdk.org/jdk11u-dev/commit/270f3cfb3da7ef15e5fbbc3ea1d0d7cd3e3cf802
Stats: 23 lines in 1 file changed: 13 ins; 0 del; 10 mod
8321925: sun/security/mscapi/KeytoolChangeAlias.java fails with "Alias <246810> does not exist"
Reviewed-by: mdoerr
Backport-of: b6233c3de773fb57b23704f1fec05d8b2d9c11c0
-------------
PR: https://git.openjdk.org/jdk11u-dev/pull/2631
More information about the jdk-updates-dev
mailing list