On Wed, 15 Apr 2026 19:54:28 GMT, Artur Barashev <[email protected]> wrote:

> SunJSSE implementation of `SSLEngine` throws an exception if being used 
> before calling `setUseClientMode()`. Javadoc wording in `SSLContextSpi` and 
> `SSLContext` classes should be improved.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

src/java.base/share/classes/javax/net/ssl/SSLContext.java line 355:

> 353:      * @implNote
> 354:      * The JDK SunJSSE provider implementation requires to always set the
> 355:      * desired mode explicitly by calling

Suggested rewording: "The JDK SunJSSE provider implementation requires that the 
desired mode be set explicitly by calling ..."

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

PR Review Comment: https://git.openjdk.org/jdk/pull/30754#discussion_r3093207438

Reply via email to