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

Rajan Halade rhalade at openjdk.java.net
Tue Oct 6 16:33:23 UTC 2020


On Tue, 6 Oct 2020 16:21:34 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:

>> Rajan Halade has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8254081: Use DateFormat instead of Date
>
> 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()?

I have fixed it, thanks!

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

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



More information about the security-dev mailing list