RFR: 8372661: Add a null-safe static factory method to "jdk.test.lib.net.SimpleSSLContext"

Volkan Yazici vyazici at openjdk.org
Thu Dec 18 12:49:23 UTC 2025


On Thu, 11 Dec 2025 13:01:53 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> Overhauls `SimpleSSLContext` to remove the need for null checks at the call site, and to accept a key store file search path, which removes the need to copy-paste `SimpleSSLContext` just to change the search path.
>
> I would prefer to split this PR into two fixes:
> 
>  - a first fix that simply adds the new API to SimpleSSLContext, without removing the old API.
>  - a second fix that do all the rest: remove the old API and update the tests.
>  
> This would allow us to easily backport the first fix, and new tests would not need adaptation when they are later being backported provided that the first fix has been backported first.
> 
> You could enjoy using dependent PRs for this :-)

@dfuch, @wangweij, thanks so much for reviews. Tier 1-2 are clear.

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

PR Comment: https://git.openjdk.org/jdk/pull/28765#issuecomment-3670114174


More information about the net-dev mailing list