[ http://issues.apache.org/jira/browse/XALANJ-2346?page=comments#action_12458504 ] Kevin Cormier commented on XALANJ-2346: ---------------------------------------
I recommend this patch be applied as-is. It covers all such uses of Double.NaN in the code base, and there are no uses of Float.NaN. I tested the patch using the Xalan conformance tests and found no regressions against current code in SVN. > [PATCH] fixes for faulty NaN handling > ------------------------------------- > > Key: XALANJ-2346 > URL: http://issues.apache.org/jira/browse/XALANJ-2346 > Project: XalanJ2 > Issue Type: Bug > Components: XSLTC > Affects Versions: 2.7.1 > Reporter: Dave Brosius > 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 is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
