RFR: 8375549: ConcurrentModificationException if jdk.crypto.disabledAlgorithms has multiple entries with known oid
Valerie Peng
valeriep at openjdk.org
Tue Jan 20 23:06:57 UTC 2026
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
-------------
Commit messages:
- 8375549: ConcurrentModificationException if jdk.crypto.disabledAlgorithms has multiple entries with known oid
Changes: https://git.openjdk.org/jdk/pull/29335/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29335&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8375549
Stats: 53 lines in 2 files changed: 50 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/29335.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29335/head:pull/29335
PR: https://git.openjdk.org/jdk/pull/29335
More information about the security-dev
mailing list