Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 73726 invoked from network); 3 Dec 2005 01:23:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Dec 2005 01:23:38 -0000 Received: (qmail 10925 invoked by uid 500); 3 Dec 2005 01:23:22 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 10746 invoked by uid 500); 3 Dec 2005 01:23:20 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 10732 invoked by uid 99); 3 Dec 2005 01:23:19 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2005 17:23:19 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id DDF3D683 for ; Fri, 2 Dec 2005 23:14:30 +0100 (CET) Message-ID: <184751563.1133561670767.JavaMail.jira@ajax.apache.org> Date: Fri, 2 Dec 2005 23:14:30 +0100 (CET) From: "Tim Ellison (JIRA)" To: harmony-dev@incubator.apache.org Subject: [jira] Created: (HARMONY-22) Double NaN should compare greater than positive infinity Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Double NaN should compare greater than positive infinity -------------------------------------------------------- Key: HARMONY-22 URL: http://issues.apache.org/jira/browse/HARMONY-22 Project: Harmony Type: Bug Components: Classlib Reporter: Tim Ellison Assigned to: Geir Magnusson Jr java.lang.Double.compareTo(java.lang.Double) should answer that Double.NaN is greater than Double.POSITIVE_INFINITY. Here's a test case that demonstrates the problem: public void testDoubleCompare() { Double nonNumber = new Double(Double.NaN); Double infinity = new Double(Double.POSITIVE_INFINITY); int indicator = nonNumber.compareTo(infinity); assertEquals("Incorrect comparison result", 1, indicator); } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira