DoubleBuffer.compareTo is not anti-symmetric

Alan Bateman Alan.Bateman at Sun.COM
Tue Nov 24 03:46:49 PST 2009


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.

-Alan.



More information about the nio-dev mailing list