You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Jim Apple (JIRA)" <xm...@xml.apache.org> on 2008/02/20 11:16:43 UTC
[jira] Created: (XMLBEANS-361) invalid NaN comparisons
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
/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
[jira] Updated: (XMLBEANS-361) invalid NaN comparisons
Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
[ 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
[jira] Resolved: (XMLBEANS-361) invalid NaN comparisons
Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radu Preotiuc-Pietro resolved XMLBEANS-361.
-------------------------------------------
Resolution: Fixed
Fix Version/s: TBD
Thanks Jim for pointing this out. The change is in as of SVN revision 641619.
> 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
> Fix For: TBD
>
> 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