On Tue, 13 Jan 2026 14:08:09 GMT, Artur Barashev <[email protected]> wrote:

> "SSLConfiguration.maximumProtocolVersion" is not being used in practice. It's 
> used to initialize "TransportContext.protocolVersion" which is being later 
> set to the negotiated protocol before being ever accessed.

src/java.base/share/classes/sun/security/ssl/TransportContext.java line 147:

> 145:         // initial security parameters
> 146:         this.conSession = new SSLSessionImpl();
> 147:         this.protocolVersion = this.sslConfig.maximumProtocolVersion;

Wouldn't this make `protocolVersion` unassigned? I can't see it being set 
anywhere here, am I missing something?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29192#discussion_r2686620719

Reply via email to