Uploaded image for project: 'Apache QPID Interoperability Test Suite'
  1. Apache QPID Interoperability Test Suite
  2. QPIDIT-10

AMQP type double and float fails in QpidJms -> QpidJms test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.1.0
    • None
    • None

    Description

      Both AMQP type double and float fail when run from QpidJms to QpidJms with the following error:

      AssertionError: 
          sent:['0x00000000', '0x80000000', '0x40490fdb', '0xc02df854', '0x00000001', '0x80000001', '0x007fffff', '0x807fffff', '0x00800000', '0x80800000', '0x7f7fffff', '0xff7fffff', '0x7f800000', '0xff800000', '0x7fc00000', '0xffc00000']
      received:['0x00000000', '0x80000000', '0x40490fdb', '0xc02df854', '0x00000001', '0x80000001', '0x007fffff', '0x807fffff', '0x00800000', '0x80800000', '0x7f7fffff', '0xff7fffff', '0x7f800000', '0xff800000', '0x7fc00000', '0x7fc00000']
      

      (Similar for AMQP type double)

      The underlying issue is that the IEEE encoding for -NaN is not supported in Java, or is not being correctly expressed. The test sends value 0xffc00000 (-NaN), but this is being returned as 0x7fc00000 (+NaN), causing the test to fail.

      If this is in fact caused by Java's implementation of float and double, then this should not be considered a hard failure, but rather an expected failure which is ignored and does not cause the overall test to fail. Provision for this type of case should be made in the test framework.

      Attachments

        Activity

          People

            kpvdr Kim van der Riet
            kpvdr Kim van der Riet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: