[
https://issues.apache.org/jira/browse/PDFBOX-1079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Bailleul updated PDFBOX-1079:
---------------------------------------
Attachment: testfloat.patch
sha1sum
ea954c6bd4c0c5196a694840df86a2253d8b0ed9 testfloat.patch
> 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
> Priority: Minor
> Attachments: 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