DoubleBuffer.compareTo is not anti-symmetric

Florian Weimer fweimer at
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? does not
do it, as far as I can tell.

Florian Weimer                <fweimer at>
BFK edv-consulting GmbH
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

More information about the nio-dev mailing list