On Tue, 10 May 2022 04:13:43 GMT, Xue-Lei Andrew Fan <[email protected]> wrote:
> Hi,
>
> May I have this simple example update in the KeyStore specification?
>
> Password protection should be destroyed in the example code in KeyStore
> specification. Otherwise, applications may just copy and past the code, and
> forget to clean up password protection.
>
> It's a trivial update, and may not worthy of a CSR. But please let me know
> if you would like to have a CSR filed.
>
> Thanks,
> Xuelei
src/java.base/share/classes/java/security/KeyStore.java line 165:
> 163: * }
> 164: * } finally {
> 165: * protParam.destroy();
`KeyStore.ProtectionParameter` does not have a `destroy` method. Only
`PasswordProtection` does.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8623