Closed glassfishrobot closed 14 years ago
Reported by swchan2@java.net
swchan2@java.net said: reassigned to myself
swchan2@java.net said: src/trunk/modules/cometd/src/main/java/com/sun/grizzly/cometd/bayeux > Sending Handshake.java Transmitting file data . Committed revision 1404.
Was assigned to swchan2@java.net
This issue was imported from java.net JIRA GRIZZLY-224
Marked as fixed on Wednesday, December 16th 2009, 6:13:23 pm
In current implementation of Handshake.java, it tries to check whether the version is between 0.9 and 1.0 inclusively. The logic is as follows: return (ver <= 1.0) && (ver >= 0.9) && ... where ver is a float variable. According to Java Language specification, numeric literal above are double. In other words, we tries to compare a double with a float which may have precision problem in some machine. One should use 0.9f and 1.0f or change the ver into double.
Environment
Operating System: All Platform: Sun
Affected Versions
[memcached-1.0]