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 still need shifting and masking.
Maybe it's better to store the components as ints, or remove the fields completely and use accessors that extract the components from the version field as needed?
-- Florian Weimer / Red Hat Product Security Team