Description of problem: qpid::messaging::Connection::isOpen is not const, which means the user can create recievers/senders but not check first if the connection is open. qpid::client::Connection::isOpen is const. Version-Release number of selected component (if applicable): 1.3
Fixed upstream in r1059846.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause: The qpid::messaging::Connection:isOpen() method is not marked as const. Consequence: That method can not be invoked on objects referenced via variable that is const. As the method is not attempting to alter the connections state, this is inconvenient. Fix: Add a const equivalent. Result: That method can now be invoked on objects referenced via variable that is const.
The new method isOpen() const; was added, tested on RHEL5.6 / 6.1snap i386/x86_64 on package: [root@mrg-qe-xx ]# rpm -q qpid-cpp-client-devel qpid-cpp-client-devel-0.10-4.el5.x86_64 [root@mrg-qe-xx ]# grep isOpen $(rpm -ql qpid-cpp-client-devel | grep qpid/messaging/Connection.h) QPID_MESSAGING_EXTERN bool isOpen(); QPID_MESSAGING_EXTERN bool isOpen() const; -> VERIFIED
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2011-0890.html