Hi Andy,

you are right, NotEquals is comparing floating point values using != and in general this is not a good idea (BTW, the same holds true for class Equality).

This is a old test that came from JDO1 and AFAIK it has not been changed since then. So I'm wondering why it is failing now. Could you file a JIRA issue for this?

Thanks!

Regards Michael


The TCK test for NotEquals is comparing the equality of floating point values 
and
subsequently failing.
The spec says :-
<spec>
Note that comparisons between floating point values are by nature inexact.
Therefore, equality com-
parisons (== and !=) with floating point values should be used with caution.
</spec>

Can someone please review this test, and comment on its validity.

--
Andy


--
Michael Bouschen                [EMAIL PROTECTED] Engineering GmbH
mailto:[EMAIL PROTECTED]        http://www.tech.spree.de/
Tel.:++49/30/235 520-33         Buelowstr. 66                   
Fax.:++49/30/2175 2012          D-10783 Berlin                  

Reply via email to