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:
{noformat}
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']
{noformat}
(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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]