On Mon, 6 Jul 2026 18:21:21 GMT, Sean Mullan <[email protected]> wrote:

>> Hai-May Chao has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Update with Sean's comments
>
> test/jdk/java/security/Signature/TestLegacyAlgorithms.java line 138:
> 
>> 136:         for (Provider p : providers) {
>> 137:             for (String a : ALG_LIST) {
>> 138:                 checkWarn("provider object " + p.getName() + ": alg " + 
>> a,
> 
> Have you tested this when there is more than one provider that supports the 
> legacy algorithm? It seems that the warning would only be emitted once for 
> the first provider, since it is the same caller when the 2nd provider is used.

I have not observed a real multiple providers case within this one othervm run. 
Since the second provider should not warn for the same caller and algorithm in 
the same JVM, I changed the test to use the first provider to verify warning 
emission. This would verify the API that emits warning once per caller for each 
legacy algorithm (not by provider), and also eliminate the original misleading 
one warning per provider test.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/31472#discussion_r3533952401

Reply via email to