Description
There is a potential for deadlock between the locks on the connection endpoint and the subscription object in the java broker when running in the AMQP 1.0 codepath. Instead of locking the subscription object the methods should instead take the lock from the link (which is the same as the connection endpoint lock).