Return-Path: X-Original-To: apmail-pdfbox-dev-archive@www.apache.org Delivered-To: apmail-pdfbox-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5C09E768E for ; Mon, 15 Aug 2011 09:44:15 +0000 (UTC) Received: (qmail 20160 invoked by uid 500); 15 Aug 2011 09:44:14 -0000 Delivered-To: apmail-pdfbox-dev-archive@pdfbox.apache.org Received: (qmail 19874 invoked by uid 500); 15 Aug 2011 09:44:01 -0000 Mailing-List: contact dev-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list dev@pdfbox.apache.org Received: (qmail 19828 invoked by uid 99); 15 Aug 2011 09:43:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2011 09:43:52 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2011 09:43:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 68E68BDC0B for ; Mon, 15 Aug 2011 09:43:27 +0000 (UTC) Date: Mon, 15 Aug 2011 09:43:27 +0000 (UTC) From: "Guillaume Bailleul (JIRA)" To: dev@pdfbox.apache.org Message-ID: <803498114.38068.1313401407426.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <68405576.19663.1311968049872.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (PDFBOX-1079) TestCOSFloat occasionally fails: Is something wrong with my machine? 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/PDFBOX-1079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Bailleul closed PDFBOX-1079. -------------------------------------- Resolution: Fixed patch applied > TestCOSFloat occasionally fails: Is something wrong with my machine? > -------------------------------------------------------------------- > > Key: PDFBOX-1079 > URL: https://issues.apache.org/jira/browse/PDFBOX-1079 > Project: PDFBox > Issue Type: Bug > Affects Versions: 1.7.0 > Environment: Windows Vista, HP Pavilion, NetBeans, Java is probably version 1.6.0_25 > Reporter: Aaron Stewart > Assignee: Guillaume Bailleul > Priority: Minor > Fix For: 1.7.0 > > Attachments: testHashCode.patch, testfloat.patch > > Original Estimate: 0.5h > Remaining Estimate: 0.5h > > In org.apache.pdfbox.cos.TestCOSFloat, testEquals() fails when num is close to 1.0f. > I originally encountered the problem as an occasional failure while building the unmodified source code. > I can get the failure consistently by setting num to 1.0f explicitly in the code and running the test. > The problem occurs on this line, on the last iteration of the loop, when i is 280000f and num is close to 280000f. > COSFloat test4 = new COSFloat(num + 0.01f); > It passes consistently on my machine if I change this value to 0.02f. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira