Re: Code review request [JDK 9] 8042449 Issue for negative byte major record version

2014-05-06 Thread Bradford Wetmore
> I still need an official reviewer. Thanks for looking into this, I was going check into it today if you didn't. I figured it must be something in byte comparison. Sure enough. Good catches! :) That code's been in there a long time! Only nit is Copyright Dates if you choose to update. R

Re: Code review request [JDK 9] 8042449 Issue for negative byte major record version

2014-05-06 Thread Xuelei Fan
On 5/6/2014 9:31 PM, Florian Weimer wrote: > On 05/06/2014 02:00 PM, Xuelei Fan wrote: > >> Storing both int version and major/minor byte versions is a little bit >> redundancy. The update is significant. I will focus on the signed byte >> issue in this fix. > > Yes, I get that. I've verified

Re: Code review request [JDK 9] 8042449 Issue for negative byte major record version

2014-05-06 Thread Florian Weimer
On 05/06/2014 03:37 PM, Xuelei Fan wrote: On 5/6/2014 9:31 PM, Florian Weimer wrote: On 05/06/2014 02:00 PM, Xuelei Fan wrote: Storing both int version and major/minor byte versions is a little bit redundancy. The update is significant. I will focus on the signed byte issue in this fix. Ye

Re: Code review request [JDK 9] 8042449 Issue for negative byte major record version

2014-05-06 Thread Xuelei Fan
On 5/6/2014 9:39 PM, Florian Weimer wrote: > On 05/06/2014 03:37 PM, Xuelei Fan wrote: >> On 5/6/2014 9:31 PM, Florian Weimer wrote: >>> On 05/06/2014 02:00 PM, Xuelei Fan wrote: >>> Storing both int version and major/minor byte versions is a little bit redundancy. The update is signific

Re: Code review request [JDK 9] 8042449 Issue for negative byte major record version

2014-05-06 Thread Florian Weimer
On 05/06/2014 02:00 PM, Xuelei Fan wrote: Storing both int version and major/minor byte versions is a little bit redundancy. The update is significant. I will focus on the signed byte issue in this fix. Yes, I get that. I've verified that you've covered all the version comparisons. I was

Re: Code review request [JDK 9] 8042449 Issue for negative byte major record version

2014-05-06 Thread Xuelei Fan
On 5/6/2014 7:41 PM, Florian Weimer wrote: > On 05/06/2014 12:10 PM, Xuelei Fan wrote: > >> Please review this simple but interesting fix: >>http://cr.openjdk.java.net/~xuelei/8042449/webrev.00/ > > It's strange that the code caches the major/minor version components as > fields of ProtocolVe

Re: Code review request [JDK 9] 8042449 Issue for negative byte major record version

2014-05-06 Thread Florian Weimer
On 05/06/2014 12:10 PM, Xuelei Fan wrote: Please review this simple but interesting fix: http://cr.openjdk.java.net/~xuelei/8042449/webrev.00/ It's strange that the code caches the major/minor version components as fields of ProtocolVersion, but these fields cannot be used directly and st

Code review request [JDK 9] 8042449 Issue for negative byte major record version

2014-05-06 Thread Xuelei Fan
Hi, Please review this simple but interesting fix: http://cr.openjdk.java.net/~xuelei/8042449/webrev.00/ During the checking of invalid record version, a byte to byte comparing is coded as: if (... recordVersion.major > ProtocolVersion.MAX.major) { throw new SSLException } "r