[jdk18] RFR: 8279222: Incorrect legacyMap.get in java.security.Provider after JDK-8276660 [v2]

Valerie Peng valeriep at openjdk.java.net
Mon Jan 3 22:40:30 UTC 2022


On Mon, 3 Jan 2022 21:39:49 GMT, Valerie Peng <valeriep at openjdk.org> wrote:

>> Ping @valeriepeng ^^^
>
> The test update checks that the alias maps to the right algorithm. However, the particular code change covered by this fix is for removing the alias from the previous algorithm which is not triggered by the test change. Alias is an internal property of the Service object. Let me explore more and see if it can be triggered.

There is no public API for retrieving the aliases from a given Service object. However, it's reported as part of toString(). So, we can check the toString() output to see if the alias is removed from the previous service. Updated test patch attached.
[patch.txt](https://github.com/openjdk/jdk18/files/7804357/patch.txt)

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

PR: https://git.openjdk.java.net/jdk18/pull/70



More information about the security-dev mailing list