Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2346

[PATCH] Fixes for faulty NaN handling

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.1
    • 2.7.3
    • XSLTC
    • None
    • PatchAvailable
    • fp3

    Description

      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))

      Attachments

        1. bad_nan.diff
          2 kB
          David Brosius

        Issue Links

          Activity

            People

              ggregory Gary D. Gregory
              dbrosius David Brosius
              Brian Minchau Brian Minchau
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: