[
https://issues.apache.org/jira/browse/PDFBOX-1079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Bailleul reopened PDFBOX-1079:
----------------------------------------
I think the problem on testEquals does not exists anymore.
But sometimes, testHashCode fails.
There is the same equality test than in testEquals. Shouldn't it be a
comparison on hashCode result ?
> 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: 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