Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
None
-
None
-
None
Description
I think Double.NaN == Double.NaN should evaluate to false.
The reasons why are documented in the Java Language Specification.
IMO, we should stick with the JLS on this issue and not dispatch to the .equals method (or whatever GroovyTruth is doing).
Attachments
Issue Links
- duplicates
-
GROOVY-3309 comparisons with NaN should always return false
- Open
- is related to
-
GROOVY-4018 Make the Groovy truth value of NaN be false
- Closed