RFR: 8254081: java/security/cert/PolicyNode/GetPolicyQualifiers.java fails due to an expired certificate

Xue-Lei Andrew Fan xuelei at openjdk.java.net
Tue Oct 6 16:24:09 UTC 2020


On Tue, 6 Oct 2020 16:00:12 GMT, Rajan Halade <rhalade at openjdk.org> wrote:

> 8254081: java/security/cert/PolicyNode/GetPolicyQualifiers.java fails due to an expired certificate

test/jdk/java/security/cert/PolicyNode/GetPolicyQualifiers.java line 57:

> 55:         params.setRevocationEnabled(false);
> 56:         // Certificates expired on Oct 6th, 2020
> 57:         params.setDate(new Date("July 01, 2020"));

The Date() constructor is deprecated, would you like to use the replacement method DateFormat.parse()?

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

PR: https://git.openjdk.java.net/jdk/pull/528



More information about the security-dev mailing list