Integrated: 8375549: ConcurrentModificationException if jdk.crypto.disabledAlgorithms has multiple entries with known oid

Valerie Peng valeriep at openjdk.org
Fri Jan 23 19:49:31 UTC 2026


On Tue, 20 Jan 2026 22:59:54 GMT, Valerie Peng <valeriep at openjdk.org> wrote:

> Inside the CryptoAlgorithmConstraints constructor, there is a loop looking up the known oid. Iterating over the "disabledServices" set and inserting the found oid(s) into it leads to ConcurrentModificationException when the set contains multiple entries. The proposed fix is to iterating over the array converted from the set which is also used for debugging output instead of the "disabledServices" set itself.
> 
> Thanks,
> Valerie

This pull request has now been integrated.

Changeset: e5512404
Author:    Valerie Peng <valeriep at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e55124041e0181ca14ed95dc5f94d404b7900029
Stats:     52 lines in 2 files changed: 49 ins; 0 del; 3 mod

8375549: ConcurrentModificationException if jdk.crypto.disabledAlgorithms has multiple entries with known oid

Reviewed-by: mullan, coffeys

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

PR: https://git.openjdk.org/jdk/pull/29335


More information about the security-dev mailing list