On Fri, 21 Aug 2026 14:11:15 GMT, Weijun Wang <[email protected]> wrote:

>> https://bugs.openjdk.org/browse/JDK-8326087
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> src/java.base/share/classes/sun/security/pkcs12/PKCS12KeyStore.java line 1949:
> 
>> 1947:             privateKeyCount = 0;
>> 1948:             secretKeyCount = 0;
>> 1949:             certificateCount = 0;
> 
> Maybe moving the 3 assignments above outside of the if check?

Done, otherwise this could lead to stale counts.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/32357#discussion_r3831396233

Reply via email to