You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Jacob Danner (JIRA)" <xm...@xml.apache.org> on 2008/02/21 04:35:43 UTC

[jira] Updated: (XMLBEANS-361) invalid NaN comparisons

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

Jacob Danner updated XMLBEANS-361:
----------------------------------

    Attachment: xmlbeans361_patch.txt

Thanks Jim. I'm attaching a quick patch for other users.

> invalid NaN comparisons
> -----------------------
>
>                 Key: XMLBEANS-361
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-361
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions:  Version 2.3
>            Reporter: Jim Apple
>            Priority: Minor
>         Attachments: xmlbeans361_patch.txt
>
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> /xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/util/XsTypeConverter.java
> contains two equality comparisons to NaN (Float.NaN and Double.NaN) at lines 90 and 142. Nothing (not even NaN) compares equal to NaN, so these will always fail. Should call isNaN

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org