[jdk21u-dev] RFR: 8329754: The ThreadSafe attribute is ignored for SecureRandom algorithm aliases

Satyen Subramaniam ssubramaniam at openjdk.org
Fri Apr 4 18:49:49 UTC 2025


On Thu, 3 Apr 2025 23:06:27 GMT, Satyen Subramaniam <ssubramaniam at openjdk.org> wrote:

> Backporting JDK-8329754: The ThreadSafe attribute is ignored for SecureRandom algorithm aliases. Fixes a bug that occurs when a provider registers an alias for the `SecureRandom` algorithm with "ThreadSafe=true" and where the `SecureRandom` instances using the alias do not honor the `ThreadSafe` attribute.

Thanks for taking a look. It's a fair point that relevant code would execute in parallel rather than synchronously - although this would only cause issues in code that depends on this implementation bug. As you bring up, since the existing implementation is long standing, closing this one.

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

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1587#issuecomment-2779508100


More information about the jdk-updates-dev mailing list