Completed
Details
Details
Assignee
Unassigned
UnassignedReporter
Jason Wolfe
Jason WolfeLabels
Approval
Ok
Patch
Code and Test
Priority
Affects versions
Fix versions
Created February 15, 2011 at 1:07 AM
Updated August 29, 2014 at 6:00 PM
Resolved August 29, 2014 at 6:00 PM
Cause: The problem was that the logic for lte/gte depended on the fact that lte is equivalent to !gt.
However, in Java, this assumption is invalid - any comparison involving NaN always yields false.
Solution: The fix was to adding lte and gte methods to Numbers.Ops directly, rather than implementing everything in terms of lt. This was the only fix I could see that didn't incur the cost of runtime checks for NaN.
Patch: clj-738-v2.diff
Screened by: Alex Miller