JDK-8351436 : Security Debug doesn't print additional information like thread, timestamp when appended to any option
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 25
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-03-07
  • Updated: 2025-03-24
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.
Other
tbdUnresolved
Description
While parsing an option string in debug to determine if extra details like thread and timestamp, should be printed, it doesn't print the additional information as expected. 

For Eg :
-Djava.security.debug=certpath:ocsp,verbose+timestamp gets broken into  certpath:ocsp and verbose+timestamp and doesn't print the timestamp information as expected and the +timestamp modifier is not applied to the certpath option.

Code in question :
https://github.com/openjdk/jdk/blob/940aa7c4cf1bf770690660c8bb21fb3ddc5186e4/src/java.base/share/classes/sun/security/util/Debug.java#L192