[
https://issues.apache.org/jira/browse/XALANJ-2346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary Gregory closed XALANJ-2346.
--------------------------------
Resolution: Fixed
Assignee: Gary Gregory
Fix Version/s: 2.7.3
{noformat}
commit -m "[XALANJ-2346][PATCH] Fixes for faulty NaN handling." -N
E:/vcs/svn/apache/xalan-j/branches/xalan-j_2_7_1_maint/java/src/org/apache/xalan/lib/ExsltDatetime.java
E:/vcs/svn/apache/xalan-j/branches/xalan-j_2_7_1_maint/java/src/org/apache/xalan/xsltc/compiler/Mode.java
Sending
E:/vcs/svn/apache/xalan-j/branches/xalan-j_2_7_1_maint/java/src/org/apache/xalan/lib/ExsltDatetime.java
Sending
E:/vcs/svn/apache/xalan-j/branches/xalan-j_2_7_1_maint/java/src/org/apache/xalan/xsltc/compiler/Mode.java
Transmitting file data ...
Committed revision 1744990
{noformat}
build smoketest OK
build smoketest.xsltc OK
build smoketest.dev OK
> [PATCH] Fixes for faulty NaN handling
> -------------------------------------
>
> Key: XALANJ-2346
> URL: https://issues.apache.org/jira/browse/XALANJ-2346
> Project: XalanJ2
> Issue Type: Bug
> Components: XSLTC
> Affects Versions: 2.7.1
> Reporter: Dave Brosius
> Assignee: Gary Gregory
> Fix For: 2.7.3
>
> Attachments: bad_nan.diff
>
>
> By definition, NaN is not equal to itself, therefore
> if (d == Double.NaN)
> will always be false. Changed such instances to
> if (Double.isNaN(d))
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]