[jdk25u-dev] Integrated: 8371383: Test sun/security/tools/jarsigner/DefaultOptions.java failed due to CertificateNotYetValidException
Roland Mesde
duke at openjdk.org
Thu Jan 29 19:46:42 UTC 2026
On Tue, 27 Jan 2026 17:11:57 GMT, Roland Mesde <duke at openjdk.org> wrote:
> 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
>
> Results attached:
>
> [linux-aarch64-specific-test.log](https://github.com/user-attachments/files/24893664/linux-aarch64-specific-test.log)
> [linux-x64-specific-test.log](https://github.com/user-attachments/files/24893665/linux-x64-specific-test.log)
> [macos-aarch64-specific-test.log](https://github.com/user-attachments/files/24893666/macos-aarch64-specific-test.log)
> [windows-x64-specific-test.log](https://github.com/user-attachments/files/24893667/windows-x64-specific-test.log)
This pull request has now been integrated.
Changeset: 97eaf9ac
Author: Roland Mesde <mesde at amazon.com>
Committer: Paul Hohensee <phh at openjdk.org>
URL: https://git.openjdk.org/jdk25u-dev/commit/97eaf9ac606a47925a597c7ab422c2746363dce2
Stats: 5 lines in 1 file changed: 3 ins; 0 del; 2 mod
8371383: Test sun/security/tools/jarsigner/DefaultOptions.java failed due to CertificateNotYetValidException
Backport-of: 0972ba681cdc81b77e9b4353db8ee835216d242e
-------------
PR: https://git.openjdk.org/jdk25u-dev/pull/188
More information about the jdk-updates-dev
mailing list