DoubleBuffer.compareTo is not anti-symmetric

Florian Weimer fweimer at bfk.de
Tue Nov 24 03:53:49 PST 2009


* Alan Bateman:

> Florian Weimer wrote:
>> :
>> Does this happen transparently by the JVM?  Double.compare() does not
>> do it, as far as I can tell.

> Double.compare will use doubleToLongBits.  AFAIK, the only method that
> preserves or exposes NaN values is doubleToRawLongBits.

Oh, I had missed this.  Thanks for the clarification.

-- 
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 mailing list