Note

[BUG] 8366058: Outdated Comment in WinCAPISeedGenerator

I deleted old comments about Windows 95.

Overview#

The WinCAPISeedGenerator.c file for Windows defines a method called nativeGenerateSeed, which retrieves random seeds from the MS CryptoAPI1. Prior to this method, there was a comment regarding early versions of Windows 95 that did not support certain required functions and suggested using runtime linking to avoid issues2.

However, JDK no longer supports Windows 95. Therefore, this outdated comment is no longer useful and could potentially cause confusion about whether consideration for Windows 95 is still necessary.

In the recent update, only the obsolete comments related to Windows 95 were removed3. Since there was no change in functionality, it did not require additional tests, so a noreg-doc label was assigned on JBS instead of adding new tests.

Discovered on JBS 2025/11/02#

The bug was discovered on JBS and the relevant file was reviewed. The problematic comment was part of the description for the nativeGenerateSeed method but had no relevance to currently supported Windows versions.

The fix involved only removing these four lines4:

- *
- * Some early versions of Windows 95 do not support the required functions.
- * Use runtime linking to avoid problems.
- *

Immediately after creating the PR, a core-libs label was automatically assigned. However, since the affected code is part of security-related native implementations, Alan Bateman5 changed it to a security label.

Reviewed 2026/01/05#

Sean Mullan6 reviewed and approved the changes. Additionally, he suggested adding a noreg-doc label on JBS, which was implemented accordingly.

After confirming there were no issues, I requested integration of the changes.

Integrated 2026/01/05#

Mullan6 sponsored the PR, and it was integrated into JDK as commit eee58547.


Footnotes#

  1. 2