[11] RFR 8207318: KeyStore#getInstance(File, LoadStoreParameter) does not load the keystore

Weijun Wang weijun.wang at oracle.com
Tue Jul 17 02:54:25 UTC 2018

Please take a review at


Here, when hasPassword is true, KeyStore::load(ins,pass) is implemented as

  keyStoreSpi.engineLoad(stream, password);
  initialized = true;

so I simply add the same "initialized = true" to the else block.

The ProbeKeystores.java test is updated with a size() call after getInstance(File,...) to ensure the keystore is loaded successfully.


More information about the security-dev mailing list