RFR: 8375549: ConcurrentModificationException if jdk.crypto.disabledAlgorithms has multiple entries with known oid [v2]

Valerie Peng valeriep at openjdk.org
Fri Jan 23 00:57:01 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

Valerie Peng has updated the pull request incrementally with one additional commit since the last revision:

  Removed an unused import from test.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/29335/files
  - new: https://git.openjdk.org/jdk/pull/29335/files/2032d24b..ce3fb4fa

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=29335&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=29335&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 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