Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 85675 invoked from network); 11 Jul 2009 15:22:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jul 2009 15:22:27 -0000 Received: (qmail 48130 invoked by uid 500); 11 Jul 2009 15:22:37 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 48081 invoked by uid 500); 11 Jul 2009 15:22:37 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 48072 invoked by uid 99); 11 Jul 2009 15:22:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jul 2009 15:22:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jul 2009 15:22:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1A44F234C004 for ; Sat, 11 Jul 2009 08:22:15 -0700 (PDT) Message-ID: <1823622600.1247325735092.JavaMail.jira@brutus> Date: Sat, 11 Jul 2009 08:22:15 -0700 (PDT) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-6268) [classlib][luni] Math.min fails when comparing doubles and floats with the same values In-Reply-To: <2068098272.1247270355218.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12729998#action_12729998 ] Tim Ellison commented on HARMONY-6268: -------------------------------------- @Mark: Nah, SVN really was down according to http://monitoring.apache.org/status/ but all is well again just now. > [classlib][luni] Math.min fails when comparing doubles and floats with the same values > --------------------------------------------------------------------------------------- > > Key: HARMONY-6268 > URL: https://issues.apache.org/jira/browse/HARMONY-6268 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: all > Reporter: Catherine Hope > Assignee: Tim Ellison > Fix For: 5.0M11 > > Attachments: harmony-6268.patch > > > Math.min always returns "-0.0" when comparing doubles and floats of the same value. This is a regression since revision 788021 "Minor optimization suggested by Ian on HARMONY-6242 (Math.max(double, double) gives wrong answer when Math.max(-0.0d, 0.0d))". > testcase: > assertEquals(1.0, Math.min( 1.0 , 1.0 )); // gives expected:<1.0> but was:<-0.0> > assertEquals(1.0f, Math.min( 1.0f , 1.0f )); // again, gives expected:<1.0> but was:<-0.0> > Math.max doesn't fail in this way. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.