You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2017/05/02 02:37:04 UTC

[jira] [Updated] (GROOVY-4906) Double.NaN == Double.Nan should evaluate to false

     [ https://issues.apache.org/jira/browse/GROOVY-4906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King updated GROOVY-4906:
------------------------------
    Fix Version/s:     (was: 3.0.0-alpha-1)

> Double.NaN == Double.Nan should evaluate to false
> -------------------------------------------------
>
>                 Key: GROOVY-4906
>                 URL: https://issues.apache.org/jira/browse/GROOVY-4906
>             Project: Groovy
>          Issue Type: Bug
>          Components: groovy-runtime
>            Reporter: Hamlet D'Arcy
>            Priority: Minor
>
> 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). 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)