On Thu, 19 Aug 2021 19:48:15 GMT, Xue-Lei Andrew Fan <xue...@openjdk.org> wrote:

>> Sean Coffey has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Remove redundant method and testcase cleanup
>
> src/java.base/share/classes/sun/security/ssl/ClientHello.java line 547:
> 
>> 545:                     // handshake output stream, so that the output 
>> records
>> 546:                     // (at the record layer) have the correct version
>> 547:                     chc.setVersion(sessionVersion);
> 
> The removing of the call to "setVersion()" has an impact, I think.  I think 
> the declaration of this method could be removed in HandshakeContext class, 
> and set the HandshakeContext.conContext.protocolVersion to 
> HandshakeContext.maximumActiveProtocol in the  HandshakeContext.initialize() 
> method.

I've removed the (now) redundant setVersion(..) method.

With respect to initialize() method we already set  
HandshakeContext.conContext.protocolVersion  to 
HandshakeContext.maximumActiveProtocol in the case of a new session. Is that 
what you were aiming at ?
https://github.com/openjdk/jdk/blob/1ea437a4b87381b558cf8157ac52fc03e37ac507/src/java.base/share/classes/sun/security/ssl/HandshakeContext.java#L261

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

PR: https://git.openjdk.java.net/jdk/pull/5110

Reply via email to