qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kim van der Riet (JIRA)" <j...@apache.org>
Subject [jira] [Created] (QPIDIT-10) AMQP type double and float fails in QpidJms -> QpidJms test
Date Thu, 09 Jul 2015 05:01:04 GMT
Kim van der Riet created QPIDIT-10:

             Summary: AMQP type double and float fails in QpidJms -> QpidJms test
                 Key: QPIDIT-10
                 URL: https://issues.apache.org/jira/browse/QPIDIT-10
             Project: Apache QPID IT
          Issue Type: Bug
          Components: SimpleTypeTest, SimpleTypeTestJmsShim
            Reporter: Kim van der Riet
            Assignee: Kim van der Riet

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

    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.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org

View raw message