JDK-8352277 : java.security documentation: incorrect regex syntax describing "usage" algorithm constraint
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 8,11,17,21,25
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-03-18
  • Updated: 2025-03-31
  • Resolved: 2025-03-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25 masterFixed
Related Reports
CSR :  
Relates :  
Description
We have an incorrect regex syntax when describing a "usage" algorithm constraint in the following 2 places: https://github.com/openjdk/jdk/blob/a37d8434ab991507bf8085ecf7816d0cd41ab584/src/java.base/share/conf/security/java.security#L537

https://github.com/openjdk/jdk/blob/a37d8434ab991507bf8085ecf7816d0cd41ab584/src/java.base/share/conf/security/java.security#L600

Current syntax indicates that usage types are optional while they are not: at least one usage type should be specified.


Comments
Changeset: 7a2e198e Branch: master Author: Artur Barashev <abarashev@openjdk.org> Date: 2025-03-31 15:48:03 +0000 URL: https://git.openjdk.org/jdk/commit/7a2e198e9fec54158020a49165c1f4a4518e28d8
31-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/24231 Date: 2025-03-25 14:29:22 +0000
25-03-2025