On Thu, 21 Oct 2021 12:06:39 GMT, Sean Mullan <[email protected]> wrote:
>> src/java.base/share/classes/sun/security/provider/certpath/AlgorithmChecker.java
>> line 363:
>>
>>> 361: // been specified.
>>> 362: if (this.prevPubKey == null) {
>>> 363: if (anchor == null) {
>>
>> This won't happen. Or, you can ignore it.
>>
>> This makes it possible to call this method in the constructor.
>
> Ok, will remove. But I will keep this method separate since, unlike the ctor
> it needs to check if `trustedPubKey` is `null` before setting the
> `prevPubKey`.
OK, but in the ctor `trustedPubKey` is also null.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5928