[jdk8u-dev] RFR: 8339560: Unaddressed comments during code review of JDK-8337664 [v2]
Francisco Ferrari Bihurriet
fferrari at openjdk.org
Tue Feb 25 17:01:07 UTC 2025
On Tue, 25 Feb 2025 16:53:07 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
>> jdk/test/sun/security/ssl/X509TrustManagerImpl/distrust/Distrust.java line 39:
>>
>>> 37:
>>> 38: public final class Distrust {
>>> 39:
>>
>> Nit: if we want to maximize the similarity with the `jdk11u-dev` version, we could remove this blank line (`Distrust.java:39`).
>>
>> `Distrust.java` diff against `jdk11u-dev` (before openjdk/jdk11u-dev at 8322c66efa9da9210eca7d6081d2a8c2d65ba4e0):
>>
>> diff --git a/jdk8u-dev at e8c86cc/jdk/test/sun/security/ssl/X509TrustManagerImpl/distrust/Distrust.java b/jdk11u-dev at 7dab5fe/test/jdk/sun/security/ssl/X509TrustManagerImpl/distrust/Distrust.java
>> index eb8abec..18178f6 100644
>> --- a/jdk8u-dev at e8c86cc/jdk/test/sun/security/ssl/X509TrustManagerImpl/distrust/Distrust.java
>> +++ b/jdk11u-dev at 7dab5fe/test/jdk/sun/security/ssl/X509TrustManagerImpl/distrust/Distrust.java
>> @@ -31,10 +31,11 @@ import javax.net.ssl.*;
>> import sun.security.validator.Validator;
>> import sun.security.validator.ValidatorException;
>>
>> +import jdk.test.lib.security.SecurityUtils;
>> +
>> /**
>> * Helper class that provides methods to facilitate testing of distrusted roots.
>> */
>> -
>> public final class Distrust {
>>
>> private static final String TEST_SRC = System.getProperty("test.src", ".");
>> @@ -76,6 +77,7 @@ public final class Distrust {
>> for (String test : tests) {
>> System.err.println("Testing " + test);
>> X509Certificate[] chain = loadCertificateChain(certPath, test);
>> +
>> for (X509TrustManager tm : tms) {
>> testTM(tm, chain, notBefore, isValid);
>> }
>
> Since `SecurityUtils` is in no package in JDK 8u. I'll leave this alone (as the import would be different anyway).
Sorry for not being clear enough, I meant removing the blank line before `public final class Distrust {`.
-------------
PR Review Comment: https://git.openjdk.org/jdk8u-dev/pull/626#discussion_r1970189884
More information about the jdk8u-dev
mailing list