RFR: 8175874: Security.insertProviderAt should throw IllegalArgumentException when index is illegal

Kevin Driver kdriver at openjdk.org
Tue Jul 18 20:59:41 UTC 2023


On Tue, 18 Jul 2023 19:59:34 GMT, Ben Perez <duke at openjdk.org> wrote:

> Fixing the bug as stated would cause compatibility issues. E.g. the `addProvider` function always adds new providers at position 0 and therefore would always throw an error. Instead of changing how the function handles indices, we instead have left an `@implNote`

Double-checked the logic here. The implementation note reflects the behavior.

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

PR Comment: https://git.openjdk.org/jdk/pull/14925#issuecomment-1640981033



More information about the security-dev mailing list