DoubleBuffer.compareTo is not anti-symmetric
fweimer at bfk.de
Tue Nov 24 03:39:38 PST 2009
* Alan Bateman:
> Florian Weimer wrote:
>> * Martin Buchholz:
>>> I can also do the minimal patch to compareTo
>>> that considers NaN as greater than any other value.
>> How do you order NaNs with different bit patterns?
> They are essentially collapsed to a single canonical value.
Does this happen transparently by the JVM? Double.compare() does not
do it, as far as I can tell.
Florian Weimer <fweimer at bfk.de>
BFK edv-consulting GmbH http://www.bfk.de/
Kriegsstraße 100 tel: +49-721-96201-1
D-76133 Karlsruhe fax: +49-721-96201-99
More information about the nio-dev