Community
Participate
Working Groups
Build Identifier: M20090917-0800 Consider the following source snippet: double x = 1.0; if (x != x) { System.out.println("NaN"); } Eclipse marks x!=x with a "Comparing identical expressions" warning. In our particular use-case, this doesn't make too much sense. According to the JLS, x!=x is true if and only if x is a NaN-value. So it can be used as a quick test for NaN. The opposite holds for x==x. In our case, Double.isNaN is not available. Please either add @SuppressWanrings support or don't show this wanring for float/double expressions. Reproducible: Always
This problem was fixed in bug 281776, and doesnt occur in the newer builds. Sven, can you please download the latest 3.6 milestone or I build?
*** This bug has been marked as a duplicate of bug 281776 ***
(In reply to comment #1) > This problem was fixed in bug 281776, and doesnt occur in the newer builds. > Sven, can you please download the latest 3.6 milestone or I build? I have downloaded 3.6M6 and everything seems to be fine now.
Verified for 3.6M7 using I20100425-2000