RFR: 8353749: Improve security warning when using JKS or JCEKS keystores [v4]

Weijun Wang weijun at openjdk.org
Wed Nov 19 00:02:33 UTC 2025


On Thu, 13 Nov 2025 07:54:57 GMT, Hai-May Chao <hchao at openjdk.org> wrote:

>> This PR improves security warning when using JKS or JCEKS keystores.
>
> Hai-May Chao has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Removed bugid from Compatibility.java test

src/java.base/share/classes/com/sun/crypto/provider/JceKeyStore.java line 996:

> 994:                 + "keytool -importkeystore -srckeystore <keystore> "
> 995:                 + "-destkeystore <keystore> -deststoretype pkcs12");
> 996:     }

Currently the debug output has a long prefix containing timestamp etc. If the warning is separated on two lines, does it make sense to call `debug.println` twice so both lines have the prefix?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/27624#discussion_r2539992152


More information about the security-dev mailing list