[jdk25u-dev] RFR: 8371383: Test sun/security/tools/jarsigner/DefaultOptions.java failed due to CertificateNotYetValidException

Roland Mesde duke at openjdk.org
Tue Jan 27 17:47:21 UTC 2026


Backporting JDK-8371383: Test sun/security/tools/jarsigner/DefaultOptions.java failed due to CertificateNotYetValidException.

The DefaultOptions.java test has an intermittent timing failure where the current system time can be before the signing certificate's NotBefore time, causing jarsigner validation to fail in CertificateValidity.valid(). This PR adjusts the test to avoid this timing problem.

For parity with Oracle JDK.

Ran related tests on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:

make test TEST=test/jdk/sun/security/tools/jarsigner/DefaultOptions.java

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

Commit messages:
 - Backport 0972ba681cdc81b77e9b4353db8ee835216d242e

Changes: https://git.openjdk.org/jdk25u-dev/pull/188/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=188&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8371383
  Stats: 5 lines in 1 file changed: 3 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk25u-dev/pull/188.diff
  Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/188/head:pull/188

PR: https://git.openjdk.org/jdk25u-dev/pull/188


More information about the jdk-updates-dev mailing list