Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-7956

FloatCoder and DoubleCoder structuralValue doesn't handle NaN

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Invalid
    • 2.14.0
    • Not applicable
    • sdk-java-core

    Description

      Comparing Float and Double NaN values always yields false, even though they serialize consistently to the same byte array.
      FloatCoder and DoubleCoder override consistentWithEquals to true but doesn't override structuralValue which return the orignal NaN and fails comparison.

      This trips MutationDetectors in tests.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sinisa_lyh Neville Li
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: