[jdk25u-dev] RFR: 8371383: Test sun/security/tools/jarsigner/DefaultOptions.java failed due to CertificateNotYetValidException
duke
duke at openjdk.org
Thu Jan 29 15:38:47 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)
@rm-gh-8
Your change (at version a88590478d30d62da35ed10bd174d7bec040f94d) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk25u-dev/pull/188#issuecomment-3818454427
More information about the jdk-updates-dev
mailing list