On Fri, 19 Aug 2022 08:40:39 GMT, Josef Eisl <[email protected]> wrote:
>> Valerie Peng has updated the pull request incrementally with one additional
>> commit since the last revision:
>>
>> Updated to address review comments.
>
> src/java.base/share/classes/java/security/Provider.java line 1276:
>
>> 1274: }
>> 1275: if (serviceSet == null) {
>> 1276: ensureLegacyParsed();
>
> Hi @valeriepeng! I believe that with this change, `getServices()` will return
> invalid legacy services. Before we called `ensureLegacyParsed()`, which
> eventually called `removeInvalidServices()`. In `getService(String, String)`,
> we are now explicitly checking for `isValid()` to keep the old behavior.
> Shouldn't we do something similar here as well? Am I missing something or is
> this an intended change?
Hmm, could be. Let me check into it and I will have to file a separate bug to
address this since the changes have already been integrated. Thanks for the
comments.
-------------
PR: https://git.openjdk.org/jdk/pull/6513