pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Bailleul (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PDFBOX-1079) TestCOSFloat occasionally fails: Is something wrong with my machine?
Date Mon, 15 Aug 2011 07:59:27 GMT

     [ https://issues.apache.org/jira/browse/PDFBOX-1079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Guillaume Bailleul updated PDFBOX-1079:
---------------------------------------

    Attachment: testHashCode.patch

Patch instable TestCOSFloat.testHashCode

> 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

        

Mime
View raw message