JDK-8287156 : Replace all OID strings with KnownOIDs constants
  • Type: Bug
  • Component: security-libs
  • Affected Version: 8
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2022-05-23
  • Updated: 2025-02-27
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 8
8-poolUnresolved
Related Reports
Relates :  
Description
As a part of backport of JDK-8242151 we have introuced KnownOIDs.java file holding all OIDs constant for re-use.
Repace all manual OID string entries with the constant in KnownOID, which might have been left out after JDK-8242151.

The following grep gives out full result where string replacement is necessary:

grep -r "\"[1-2].*\.[0-9].*\.[0-9].*" java.base/ 
grep -r "\"[1-2].*\.[0-9].*\.[0-9].*" j*secu*
grep -r "\"[1-2].*\.[0-9].*\.[0-9].*" *mscap*